Skip to content

fix: build for Swift 5.9 #641

fix: build for Swift 5.9

fix: build for Swift 5.9 #641

Triggered via pull request October 23, 2024 17:35
@grdsdevgrdsdev
synchronize #577
fix/swift59
Status Failure
Total duration 7m 12s
Artifacts

ci.yml

on: pull_request
Matrix: linux
Matrix: xcodebuild
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 56 warnings
xcodebuild (IOS, 15.2): Sources/Storage/StorageFileApi.swift#L57
expressions are not allowed at the top level
xcodebuild (IOS, 15.2): Sources/Storage/StorageFileApi.swift#L57
consecutive statements on a line must be separated by ';'
xcodebuild (IOS, 15.2): Sources/Storage/StorageFileApi.swift#L57
expressions are not allowed at the top level
xcodebuild (TVOS, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (IOS, 15.2): Sources/Storage/StorageFileApi.swift#L57
consecutive statements on a line must be separated by ';'
xcodebuild (IOS, 15.2)
Process completed with exit code 2.
xcodebuild (test, TVOS, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (test, MACOS, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (test, WATCHOS, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (test, MAC_CATALYST, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (WATCHOS, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (MAC_CATALYST, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (MAC_CATALYST, 15.2): Sources/Storage/StorageFileApi.swift#L57
expressions are not allowed at the top level
xcodebuild (MAC_CATALYST, 15.2): Sources/Storage/StorageFileApi.swift#L57
consecutive statements on a line must be separated by ';'
xcodebuild (MAC_CATALYST, 15.2)
The operation was canceled.
xcodebuild (MACOS, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (MACOS, 15.2)
The operation was canceled.
xcodebuild (test, IOS, 15.2)
The job was canceled because "IOS_15_2" failed.
xcodebuild (test, IOS, 15.2)
The operation was canceled.
xcodebuild (IOS, 15.2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
xcodebuild (IOS, 15.2): Sources/Storage/StorageFileApi.swift#L97
reference to var 'testingBoundary' is not concurrency-safe because it involves shared mutable state
xcodebuild (IOS, 15.2): Sources/Storage/StorageFileApi.swift#L97
reference to var 'testingBoundary' is not concurrency-safe because it involves shared mutable state
xcodebuild (IOS, 15.2): Sources/Storage/Helpers.swift#L76
'encoder' is deprecated: encoder is deprecated, AnyJSON now uses default JSONEncoder().
xcodebuild (IOS, 15.2): Sources/Realtime/Push.swift#L26
'RealtimeChannel' is deprecated: Use new RealtimeChannelV2 class instead. See migration guide: https://github.com/supabase-community/supabase-swift/blob/main/docs/migrations/RealtimeV2%20Migration%20Guide.md
xcodebuild (IOS, 15.2): Sources/Realtime/Push.swift#L65
'RealtimeChannel' is deprecated: Use new RealtimeChannelV2 class instead. See migration guide: https://github.com/supabase-community/supabase-swift/blob/main/docs/migrations/RealtimeV2%20Migration%20Guide.md
xcodebuild (IOS, 15.2): Sources/Realtime/TimeoutTimer.swift#L60
reference to static property 'main' is not concurrency-safe because it involves shared mutable state
xcodebuild (IOS, 15.2): Sources/Realtime/V2/PresenceAction.swift#L86
'decoder' is deprecated: decoder is deprecated, AnyJSON now uses default JSONDecoder().
xcodebuild (IOS, 15.2): Sources/Storage/Helpers.swift#L76
'encoder' is deprecated: encoder is deprecated, AnyJSON now uses default JSONEncoder().
xcodebuild (IOS, 15.2): Sources/Storage/Helpers.swift#L76
'encoder' is deprecated: encoder is deprecated, AnyJSON now uses default JSONEncoder().
linux (5.9)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
linux (5.10)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
xcodebuild (MAC_CATALYST, 15.2): Sources/Storage/StorageFileApi.swift#L97
reference to var 'testingBoundary' is not concurrency-safe because it involves shared mutable state
xcodebuild (MAC_CATALYST, 15.2): Sources/Storage/StorageFileApi.swift#L97
reference to var 'testingBoundary' is not concurrency-safe because it involves shared mutable state
xcodebuild (MAC_CATALYST, 15.2): Sources/Storage/Helpers.swift#L76
'encoder' is deprecated: encoder is deprecated, AnyJSON now uses default JSONEncoder().
xcodebuild (MAC_CATALYST, 15.2): Sources/Realtime/TimeoutTimer.swift#L60
reference to static property 'main' is not concurrency-safe because it involves shared mutable state
xcodebuild (MAC_CATALYST, 15.2): Sources/Realtime/V2/PresenceAction.swift#L86
'decoder' is deprecated: decoder is deprecated, AnyJSON now uses default JSONDecoder().
xcodebuild (MAC_CATALYST, 15.2): Sources/Storage/Helpers.swift#L76
'encoder' is deprecated: encoder is deprecated, AnyJSON now uses default JSONEncoder().
xcodebuild (MACOS, 15.2): Sources/Storage/StorageFileApi.swift#L97
reference to var 'testingBoundary' is not concurrency-safe because it involves shared mutable state
xcodebuild (MACOS, 15.2): Sources/Storage/StorageFileApi.swift#L97
reference to var 'testingBoundary' is not concurrency-safe because it involves shared mutable state
xcodebuild (MACOS, 15.2): Sources/Realtime/Push.swift#L26
'RealtimeChannel' is deprecated: Use new RealtimeChannelV2 class instead. See migration guide: https://github.com/supabase-community/supabase-swift/blob/main/docs/migrations/RealtimeV2%20Migration%20Guide.md
xcodebuild (MACOS, 15.2): Sources/Realtime/Push.swift#L65
'RealtimeChannel' is deprecated: Use new RealtimeChannelV2 class instead. See migration guide: https://github.com/supabase-community/supabase-swift/blob/main/docs/migrations/RealtimeV2%20Migration%20Guide.md
xcodebuild (MACOS, 15.2): Sources/Realtime/TimeoutTimer.swift#L60
reference to static property 'main' is not concurrency-safe because it involves shared mutable state
xcodebuild (MACOS, 15.2): Sources/Realtime/V2/PresenceAction.swift#L86
'decoder' is deprecated: decoder is deprecated, AnyJSON now uses default JSONDecoder().
xcodebuild (MACOS, 15.2): Sources/Realtime/V2/PresenceAction.swift#L113
'decoder' is deprecated: decoder is deprecated, AnyJSON now uses default JSONDecoder().
Examples
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Examples: Examples/SlackClone/AppView.swift#L18
'Status' is deprecated: renamed to 'RealtimeClientStatus'
Examples: @__swiftmacro_10SlackClone12AppViewModelC24realtimeConnectionStatus18ObservationTrackedfMp_.swift#L1
'Status' is deprecated: renamed to 'RealtimeClientStatus'
Examples: @__swiftmacro_10SlackClone12AppViewModelC24realtimeConnectionStatus18ObservationTrackedfMp_.swift#L1
'Status' is deprecated: renamed to 'RealtimeClientStatus'
Examples: @__swiftmacro_10SlackClone12AppViewModelC24realtimeConnectionStatus18ObservationTrackedfMp_.swift#L1
'Status' is deprecated: renamed to 'RealtimeClientStatus'
Examples: @__swiftmacro_10SlackClone12AppViewModelC24realtimeConnectionStatus18ObservationTrackedfMp_.swift#L1
'Status' is deprecated: renamed to 'RealtimeClientStatus'
Examples: Examples/SlackClone/AppView.swift#L18
'Status' is deprecated: renamed to 'RealtimeClientStatus'
Examples: @__swiftmacro_10SlackClone12AppViewModelC24realtimeConnectionStatus18ObservationTrackedfMp_.swift#L1
'Status' is deprecated: renamed to 'RealtimeClientStatus'
Examples: Examples/SlackClone/UserStore.swift#L90
default will never be executed
Examples: Sources/Storage/Helpers.swift#L76
'encoder' is deprecated: encoder is deprecated, AnyJSON now uses default JSONEncoder().
Examples: Sources/PostgREST/PostgrestFilterBuilder.swift#L4
class 'PostgrestFilterBuilder' must restate inherited '@unchecked Sendable' conformance
Examples: Sources/PostgREST/PostgrestQueryBuilder.swift#L4
class 'PostgrestQueryBuilder' must restate inherited '@unchecked Sendable' conformance
Examples: Sources/PostgREST/PostgrestRpcBuilder.swift#L7
class 'PostgrestRpcBuilder' must restate inherited '@unchecked Sendable' conformance
Examples: Sources/PostgREST/PostgrestTransformBuilder.swift#L4
class 'PostgrestTransformBuilder' must restate inherited '@unchecked Sendable' conformance
Examples: Sources/Realtime/Defaults.swift#L36
static property 'reconnectSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
Examples: Sources/Realtime/Defaults.swift#L41
static property 'rejoinSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
Examples: Sources/Realtime/Defaults.swift#L48
static property 'encode' is not concurrency-safe because non-'Sendable' type '(Any) -> Data' may have shared mutable state; this is an error in the Swift 6 language mode
Examples: Sources/Realtime/Defaults.swift#L57
static property 'decode' is not concurrency-safe because non-'Sendable' type '(Data) -> Any?' may have shared mutable state; this is an error in the Swift 6 language mode
Examples: Sources/Realtime/PhoenixTransport.swift#L140
non-final class 'URLSessionTransport' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
Examples: Examples/UserManagement/ProfileView.swift#L174
'upload(path:file:options:)' is deprecated: renamed to 'upload(_:data:options:)'