Build Information
Successful build of w3w-swift-wrapper with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 8
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/what3words/w3w-swift-wrapper.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/what3words/w3w-swift-wrapper
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a83c2ba upped podspec version
Cloned https://github.com/what3words/w3w-swift-wrapper.git
Revision (git rev-parse @):
a83c2ba97096b083a410ce348e0f555df9687fd4
SUCCESS checkout https://github.com/what3words/w3w-swift-wrapper.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/what3words/w3w-swift-wrapper.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/42] Compiling W3WSwiftCore ApiExtension.swift
[6/42] Compiling W3WSwiftCore SdkExtension.swift
[7/42] Compiling W3WSwiftCore SdkTypes.swift
[8/42] Compiling W3WSwiftCore W3WProtocolV3.swift
[9/46] Compiling W3WSwiftCore W3WInputType.swift
[10/46] Compiling W3WSwiftCore W3WOption.swift
[11/46] Compiling W3WSwiftCore W3WOptionAcceptorProtocol.swift
[12/46] Compiling W3WSwiftCore W3WOptionProtocol.swift
[13/46] Emitting module W3WSwiftCore
[14/46] Compiling W3WSwiftCore W3WOptions.swift
[15/46] Compiling W3WSwiftCore W3WDuration.swift
[16/46] Compiling W3WSwiftCore ClosureDefinitions.swift
[17/46] Compiling W3WSwiftCore W3WError.swift
[18/46] Compiling W3WSwiftCore W3WRanked.swift
[19/46] Compiling W3WSwiftCore W3WSquare.swift
[20/46] Compiling W3WSwiftCore W3WSuggestion.swift
[21/46] Compiling W3WSwiftCore W3WAudioStreamProtocol.swift
[22/46] Compiling W3WSwiftCore W3WVoiceListeningState.swift
[23/46] Compiling W3WSwiftCore W3WVoiceProtocol.swift
[24/46] Compiling W3WSwiftCore W3WVoiceSuggestion.swift
[25/46] Compiling W3WSwiftCore W3WSettings.swift
[26/46] Compiling W3WSwiftCore W3WMeasurementSystem.swift
[27/46] Compiling W3WSwiftCore W3WUtilitiesProtocol.swift
[28/46] Compiling W3WSwiftCore W3WCountry.swift
[29/46] Compiling W3WSwiftCore W3WLanguage.swift
[30/46] Compiling W3WSwiftCore W3WRegex.swift
[31/46] Compiling W3WSwiftCore W3WDebouncer.swift
[32/46] Compiling W3WSwiftCore W3WThread.swift
[33/46] Compiling W3WSwiftCore W3WBox.swift
[34/46] Compiling W3WSwiftCore W3WProtocolV4.swift
[35/46] Compiling W3WSwiftCore W3WTranslate.swift
[36/46] Compiling W3WSwiftCore W3WJson.swift
[37/46] Compiling W3WSwiftCore W3WRequest.swift
[38/46] Compiling W3WSwiftCore W3WCircle.swift
[39/46] Compiling W3WSwiftCore W3WDistance.swift
[40/46] Compiling W3WSwiftCore W3WLine.swift
[41/46] Compiling W3WSwiftCore W3WPolygon.swift
[42/46] Compiling W3WSwiftCore W3WAudioRecorder.swift
[43/46] Compiling W3WSwiftCore W3WAudioRecording.swift
[44/46] Compiling W3WSwiftCore W3WAudioStream.swift
[45/46] Compiling W3WSwiftCore W3WEncoding.swift
[46/46] Compiling W3WSwiftCore W3WMicrophone.swift
[47/61] Compiling W3WSwiftVoiceApi W3WSettings.swift
[48/62] Compiling W3WSwiftVoiceApi W3WVoiceApi.swift
[49/62] Compiling W3WSwiftVoiceApi W3WApiCall.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultLanguage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WVoiceSocket.swift:62:30: warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 |
61 | /// default language
62 | var language = W3WSettings.defaultLanguage
| `- warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Socket session
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: note: static property declared here
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| `- note: static property declared here
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:1699:14: warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1697 | fileprivate var opened: Bool
1698 |
1699 | static var bufferSize = 0x2000
| |- warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1700 |
1701 | open override var hash: Int { return id }
[50/62] Compiling W3WSwiftVoiceApi W3WVoiceSocket.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultLanguage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WVoiceSocket.swift:62:30: warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 |
61 | /// default language
62 | var language = W3WSettings.defaultLanguage
| `- warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Socket session
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: note: static property declared here
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| `- note: static property declared here
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:1699:14: warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1697 | fileprivate var opened: Bool
1698 |
1699 | static var bufferSize = 0x2000
| |- warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1700 |
1701 | open override var hash: Int { return id }
[51/62] Compiling W3WSwiftVoiceApi W3WTypes.swift
[52/62] Compiling W3WSwiftVoiceApi W3WVoiceUpload.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/WatchOS/W3WVoiceUpload.swift:119:9: warning: capture of 'callback' with non-sendable type 'W3WVoiceSuggestionsResponse' (aka '(Optional<Array<W3WVoiceSuggestion>>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | print("Got Reply From Server")
118 | if error != nil {
119 | callback(nil, W3WError.voiceSocketError(error: W3WVoiceSocketError.other(error: error ?? W3WError.unknown)))
| |- warning: capture of 'callback' with non-sendable type 'W3WVoiceSuggestionsResponse' (aka '(Optional<Array<W3WVoiceSuggestion>>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
120 | return
121 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/WatchOS/W3WVoiceUpload.swift:123:9: warning: capture of 'self' with non-sendable type 'W3WVoiceUploadApi' in a `@Sendable` closure; this is an error in the Swift 6 language mode
12 |
13 | /// Communicates with the Speechmatics API
14 | public class W3WVoiceUploadApi {
| `- note: class 'W3WVoiceUploadApi' does not conform to the 'Sendable' protocol
15 |
16 | let endpoint: String!
:
121 |
122 | } else if let d = data {
123 | self.recieved(data: d, callback: callback)
| `- warning: capture of 'self' with non-sendable type 'W3WVoiceUploadApi' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | return
125 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultLanguage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/WatchOS/W3WVoiceUpload.swift:173:66: warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
171 | // if no language is specified then add a default one
172 | if !checkForLanguageOption(options: options) {
173 | filteredOptions.append(W3WOption.voiceLanguage(W3WSettings.defaultLanguage))
| `- warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
174 | }
175 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: note: static property declared here
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| `- note: static property declared here
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/WatchOS/W3WVoiceUpload.swift:185:56: warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
183 |
184 | func addLanguageOption() -> String {
185 | let language = W3WOption.voiceLanguage(W3WSettings.defaultLanguage)
| `- warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
186 | return language.key() + "=" + language.asString()
187 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: note: static property declared here
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| `- note: static property declared here
22 |
23 |
[53/62] Compiling W3WSwiftVoiceApi JsonVoiceSuggestion.swift
[54/62] Compiling W3WSwiftVoiceApi W3WJsonVoiceError.swift
[55/62] Compiling W3WSwiftVoiceApi JsonVoiceLanguages.swift
[56/62] Compiling W3WSwiftVoiceApi JsonVoiceResponse.swift
[57/62] Compiling W3WSwiftVoiceApi JsonVoiceError.swift
[58/62] Compiling W3WSwiftVoiceApi JsonVoiceLanguage.swift
[59/62] Compiling W3WSwiftVoiceApi W3WError.swift
[60/62] Compiling W3WSwiftVoiceApi W3WVoiceSuggestion.swift
[61/62] Emitting module W3WSwiftVoiceApi
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| |- warning: static property 'defaultLanguage' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultLanguage' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultLanguage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WVoiceSocket.swift:62:30: warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
60 |
61 | /// default language
62 | var language = W3WSettings.defaultLanguage
| `- warning: reference to static property 'defaultLanguage' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
63 |
64 | /// Socket session
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/W3WSettings.swift:21:21: note: static property declared here
19 |
20 | // language to defaul to when not provided in a call
21 | public static var defaultLanguage = W3WBaseLanguage(code: "en", name: "English", nativeName: "English")
| `- note: static property declared here
22 |
23 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:1699:14: warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1697 | fileprivate var opened: Bool
1698 |
1699 | static var bufferSize = 0x2000
| |- warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1700 |
1701 | open override var hash: Int { return id }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:1690:13: warning: let 'manager' is not concurrency-safe because non-'Sendable' type 'W3Manager' may have shared mutable state; this is an error in the Swift 6 language mode
1608 | // using fewers threads. Helps tremendously with lowing system resources when many conncurrent
1609 | // sockets are opened.
1610 | private class W3Manager {
| `- note: class 'W3Manager' does not conform to the 'Sendable' protocol
1611 | var queue = DispatchQueue(label: "SwiftWebSocketInstance", attributes: [])
1612 | var once = Int()
:
1688 | }
1689 |
1690 | private let manager = W3Manager()
| |- warning: let 'manager' is not concurrency-safe because non-'Sendable' type 'W3Manager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1691 |
1692 | /// WebSocket objects are bidirectional network streams that communicate over HTTP. RFC 6455.
[62/62] Compiling W3WSwiftVoiceApi W3WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:1699:14: warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1697 | fileprivate var opened: Bool
1698 |
1699 | static var bufferSize = 0x2000
| |- warning: static property 'bufferSize' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1700 |
1701 | open override var hash: Int { return id }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:1690:13: warning: let 'manager' is not concurrency-safe because non-'Sendable' type 'W3Manager' may have shared mutable state; this is an error in the Swift 6 language mode
1608 | // using fewers threads. Helps tremendously with lowing system resources when many conncurrent
1609 | // sockets are opened.
1610 | private class W3Manager {
| `- note: class 'W3Manager' does not conform to the 'Sendable' protocol
1611 | var queue = DispatchQueue(label: "SwiftWebSocketInstance", attributes: [])
1612 | var once = Int()
:
1688 | }
1689 |
1690 | private let manager = W3Manager()
| |- warning: let 'manager' is not concurrency-safe because non-'Sendable' type 'W3Manager' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'manager' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
1691 |
1692 | /// WebSocket objects are bidirectional network streams that communicate over HTTP. RFC 6455.
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:655:13: warning: capture of 'self' with non-sendable type 'W3InnerWebSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
544 |
545 | /// WebSocket objects are bidirectional network streams that communicate over HTTP. RFC 6455.
546 | private class W3InnerWebSocket: Hashable {
| `- note: class 'W3InnerWebSocket' does not conform to the 'Sendable' protocol
547 | var id : Int
548 | var mutex = pthread_mutex_t()
:
653 | if stub{
654 | manager.queue.asyncAfter(deadline: DispatchTime.now() + Double(0) / Double(NSEC_PER_SEC)){
655 | _ = self
| `- warning: capture of 'self' with non-sendable type 'W3InnerWebSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
656 | }
657 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:659:21: warning: capture of 'self' with non-sendable type 'W3InnerWebSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
544 |
545 | /// WebSocket objects are bidirectional network streams that communicate over HTTP. RFC 6455.
546 | private class W3InnerWebSocket: Hashable {
| `- note: class 'W3InnerWebSocket' does not conform to the 'Sendable' protocol
547 | var id : Int
548 | var mutex = pthread_mutex_t()
:
657 | } else {
658 | manager.queue.asyncAfter(deadline: DispatchTime.now() + Double(0) / Double(NSEC_PER_SEC)){
659 | manager.add(self)
| `- warning: capture of 'self' with non-sendable type 'W3InnerWebSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
660 | }
661 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:861:15: warning: capture of 'self' with non-sendable type 'W3InnerWebSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
544 |
545 | /// WebSocket objects are bidirectional network streams that communicate over HTTP. RFC 6455.
546 | private class W3InnerWebSocket: Hashable {
| `- note: class 'W3InnerWebSocket' does not conform to the 'Sendable' protocol
547 | var id : Int
548 | var mutex = pthread_mutex_t()
:
859 | } else {
860 | manager.queue.asyncAfter(deadline: DispatchTime.now() + Double(0) / Double(NSEC_PER_SEC)){
861 | self.lock()
| `- warning: capture of 'self' with non-sendable type 'W3InnerWebSocket' in a `@Sendable` closure; this is an error in the Swift 6 language mode
862 | self.frames += [frame]
863 | self.unlock()
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:862:31: warning: capture of 'frame' with non-sendable type 'W3Frame' in a `@Sendable` closure; this is an error in the Swift 6 language mode
346 | }
347 |
348 | private class W3Frame {
| `- note: class 'W3Frame' does not conform to the 'Sendable' protocol
349 | var inflate = false
350 | var code = OpCode.continue
:
860 | manager.queue.asyncAfter(deadline: DispatchTime.now() + Double(0) / Double(NSEC_PER_SEC)){
861 | self.lock()
862 | self.frames += [frame]
| `- warning: capture of 'frame' with non-sendable type 'W3Frame' in a `@Sendable` closure; this is an error in the Swift 6 language mode
863 | self.unlock()
864 | manager.signal()
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftVoiceApi/Network/W3WebSocket.swift:1625:29: warning: capture of 'self' with non-sendable type 'W3Manager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1608 | // using fewers threads. Helps tremendously with lowing system resources when many conncurrent
1609 | // sockets are opened.
1610 | private class W3Manager {
| `- note: class 'W3Manager' does not conform to the 'Sendable' protocol
1611 | var queue = DispatchQueue(label: "SwiftWebSocketInstance", attributes: [])
1612 | var once = Int()
:
1623 | var wait = true
1624 | wss.removeAll()
1625 | pthread_mutex_lock(&self.mutex)
| `- warning: capture of 'self' with non-sendable type 'W3Manager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1626 | for ws in self.websockets {
1627 | wss.append(ws)
[63/90] Compiling W3WSwiftApi JsonCoordinates.swift
[64/90] Compiling W3WSwiftApi JsonEnd.swift
[65/90] Compiling W3WSwiftApi JsonError.swift
[66/92] Compiling W3WSwiftApi JsonSuggestion.swift
[67/92] Compiling W3WSwiftApi JsonSuggestions.swift
[68/92] Compiling W3WSwiftApi ExportCoreTypes.swift
[69/92] Compiling W3WSwiftApi W3WApiSuggestionExtension.swift
[70/92] Compiling W3WSwiftApi W3WErrorExtension.swift
[71/92] Compiling W3WSwiftApi JsonBoundingSquare.swift
[72/92] Compiling W3WSwiftApi JsonLanguage.swift
[73/92] Compiling W3WSwiftApi JsonLanguages.swift
[74/92] Compiling W3WSwiftApi JsonLine.swift
[75/92] Compiling W3WSwiftApi JsonSquare.swift
[76/92] Compiling W3WSwiftApi JsonSquareSuggestions.swift
[77/92] Compiling W3WSwiftApi JsonStart.swift
[78/92] Compiling W3WSwiftApi W3WWebSocketError.swift
[79/92] Compiling W3WSwiftApi W3WApiLineExtension.swift
[80/92] Compiling W3WSwiftApi W3WApiSquareExtension.swift
[81/92] Compiling W3WSwiftApi Types.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:22:14: warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | // MARK: Defaults
21 |
22 | static var defaultDebounceDelay = 0.3
| |- warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDebounceDelay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultDebounceDelay' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Constants
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:13: warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:24: warning: capture of 'self' with non-sendable type 'W3WAutoSuggestHelper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// Wrapper for autosuggest calls including a debouncer to throttle calls and an onSelected to
17 | /// find the coordinates only for the selected result.
18 | public class W3WAutoSuggestHelper {
| `- note: class 'W3WAutoSuggestHelper' does not conform to the 'Sendable' protocol
19 |
20 | /// The API or SDK
:
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| `- warning: capture of 'self' with non-sendable type 'W3WAutoSuggestHelper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:71:9: warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | DispatchQueue.main.async {
70 | // TODO: check this works
71 | completion([], nil)
| |- warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:11: warning: capture of 'completion' with non-sendable type 'W3WSquareResponse' (aka '(Optional<any W3WSquare>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: capture of 'completion' with non-sendable type 'W3WSquareResponse' (aka '(Optional<any W3WSquare>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:22: warning: capture of 'square' with non-sendable type '(any W3WSquare)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| `- warning: capture of 'square' with non-sendable type '(any W3WSquare)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WSquare.swift:13:17: note: protocol 'W3WSquare' does not conform to the 'Sendable' protocol
11 |
12 | /// Protocol defining a W3W square
13 | public protocol W3WSquare: W3WSuggestion, CustomStringConvertible {
| `- note: protocol 'W3WSquare' does not conform to the 'Sendable' protocol
14 |
15 | /// three word address
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'W3WSwiftCore'
8 | import Foundation
9 | import CoreLocation
10 | import W3WSwiftCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'W3WSwiftCore'
11 |
12 | @available(*, deprecated, renamed: "W3WAutoSuggestHelper")
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:71:9: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | DispatchQueue.main.async {
70 | // TODO: check this works
71 | completion([], nil)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:13: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:22: warning: sending 'square' risks causing data races; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: sending 'square' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'square' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[82/92] Compiling W3WSwiftApi What3Words+VoiceAPI.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:22:14: warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | // MARK: Defaults
21 |
22 | static var defaultDebounceDelay = 0.3
| |- warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDebounceDelay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultDebounceDelay' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Constants
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:13: warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:24: warning: capture of 'self' with non-sendable type 'W3WAutoSuggestHelper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// Wrapper for autosuggest calls including a debouncer to throttle calls and an onSelected to
17 | /// find the coordinates only for the selected result.
18 | public class W3WAutoSuggestHelper {
| `- note: class 'W3WAutoSuggestHelper' does not conform to the 'Sendable' protocol
19 |
20 | /// The API or SDK
:
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| `- warning: capture of 'self' with non-sendable type 'W3WAutoSuggestHelper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:71:9: warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | DispatchQueue.main.async {
70 | // TODO: check this works
71 | completion([], nil)
| |- warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:11: warning: capture of 'completion' with non-sendable type 'W3WSquareResponse' (aka '(Optional<any W3WSquare>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: capture of 'completion' with non-sendable type 'W3WSquareResponse' (aka '(Optional<any W3WSquare>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:22: warning: capture of 'square' with non-sendable type '(any W3WSquare)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| `- warning: capture of 'square' with non-sendable type '(any W3WSquare)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WSquare.swift:13:17: note: protocol 'W3WSquare' does not conform to the 'Sendable' protocol
11 |
12 | /// Protocol defining a W3W square
13 | public protocol W3WSquare: W3WSuggestion, CustomStringConvertible {
| `- note: protocol 'W3WSquare' does not conform to the 'Sendable' protocol
14 |
15 | /// three word address
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'W3WSwiftCore'
8 | import Foundation
9 | import CoreLocation
10 | import W3WSwiftCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'W3WSwiftCore'
11 |
12 | @available(*, deprecated, renamed: "W3WAutoSuggestHelper")
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:71:9: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | DispatchQueue.main.async {
70 | // TODO: check this works
71 | completion([], nil)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:13: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:22: warning: sending 'square' risks causing data races; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: sending 'square' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'square' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[83/92] Compiling W3WSwiftApi W3WAutosuggestHelper.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:22:14: warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | // MARK: Defaults
21 |
22 | static var defaultDebounceDelay = 0.3
| |- warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDebounceDelay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultDebounceDelay' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Constants
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:13: warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:24: warning: capture of 'self' with non-sendable type 'W3WAutoSuggestHelper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | /// Wrapper for autosuggest calls including a debouncer to throttle calls and an onSelected to
17 | /// find the coordinates only for the selected result.
18 | public class W3WAutoSuggestHelper {
| `- note: class 'W3WAutoSuggestHelper' does not conform to the 'Sendable' protocol
19 |
20 | /// The API or SDK
:
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| `- warning: capture of 'self' with non-sendable type 'W3WAutoSuggestHelper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:71:9: warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | DispatchQueue.main.async {
70 | // TODO: check this works
71 | completion([], nil)
| |- warning: capture of 'completion' with non-sendable type '([any W3WSuggestion], W3WError?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:11: warning: capture of 'completion' with non-sendable type 'W3WSquareResponse' (aka '(Optional<any W3WSquare>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: capture of 'completion' with non-sendable type 'W3WSquareResponse' (aka '(Optional<any W3WSquare>, Optional<W3WError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:22: warning: capture of 'square' with non-sendable type '(any W3WSquare)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| `- warning: capture of 'square' with non-sendable type '(any W3WSquare)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WSquare.swift:13:17: note: protocol 'W3WSquare' does not conform to the 'Sendable' protocol
11 |
12 | /// Protocol defining a W3W square
13 | public protocol W3WSquare: W3WSuggestion, CustomStringConvertible {
| `- note: protocol 'W3WSquare' does not conform to the 'Sendable' protocol
14 |
15 | /// three word address
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'W3WSwiftCore'
8 | import Foundation
9 | import CoreLocation
10 | import W3WSwiftCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'W3WSwiftCore'
11 |
12 | @available(*, deprecated, renamed: "W3WAutoSuggestHelper")
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:71:9: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
69 | DispatchQueue.main.async {
70 | // TODO: check this works
71 | completion([], nil)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
72 | }
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:13: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:59:24: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
57 | }
58 | DispatchQueue.main.async {
59 | completion(self.suggestions, error)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
60 | }
61 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:11: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WAutosuggestHelper.swift:142:22: warning: sending 'square' risks causing data races; this is an error in the Swift 6 language mode
140 | w3w?.convertToCoordinates(words: words) { square, error in
141 | DispatchQueue.main.async {
142 | completion(square, error)
| |- warning: sending 'square' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'square' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
143 | }
144 | }
[84/92] Compiling W3WSwiftApi What3WordsV3.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:98:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 |
40 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
41 | public typealias StringLiteralType = String
42 |
:
96 |
97 |
98 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'english' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
[85/92] Compiling W3WSwiftApi W3WFormat.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:98:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 |
40 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
41 | public typealias StringLiteralType = String
42 |
:
96 |
97 |
98 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'english' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
[86/92] Compiling W3WSwiftApi W3WSelectionType.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:98:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 |
40 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
41 | public typealias StringLiteralType = String
42 |
:
96 |
97 |
98 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'english' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
[87/92] Compiling W3WSwiftApi JsonLines.swift
[88/92] Compiling W3WSwiftApi JsonNortheast.swift
[89/92] Compiling W3WSwiftApi JsonSouthwest.swift
[90/92] Emitting module W3WSwiftApi
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:98:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 |
40 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
41 | public typealias StringLiteralType = String
42 |
:
96 |
97 |
98 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'english' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:22:14: warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | // MARK: Defaults
21 |
22 | static var defaultDebounceDelay = 0.3
| |- warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDebounceDelay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultDebounceDelay' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Constants
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:17:14: warning: static property 'domains' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static let apiVersion = "4.0.0"
16 |
17 | static var domains = ["what3words.com", "w3w.io"]
| |- warning: static property 'domains' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'domains' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'domains' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:26:21: warning: static property 'maxMetersDiagonalForGrid' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | // MARK: Constants
25 |
26 | public static var maxMetersDiagonalForGrid = 4000.0
| |- warning: static property 'maxMetersDiagonalForGrid' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxMetersDiagonalForGrid' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxMetersDiagonalForGrid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | // MARK: Audio
[91/92] Compiling W3WSwiftApi W3WSettings.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:17:14: warning: static property 'domains' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static let apiVersion = "4.0.0"
16 |
17 | static var domains = ["what3words.com", "w3w.io"]
| |- warning: static property 'domains' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'domains' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'domains' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:22:14: warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | // MARK: Defaults
21 |
22 | static var defaultDebounceDelay = 0.3
| |- warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDebounceDelay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultDebounceDelay' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Constants
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:26:21: warning: static property 'maxMetersDiagonalForGrid' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | // MARK: Constants
25 |
26 | public static var maxMetersDiagonalForGrid = 4000.0
| |- warning: static property 'maxMetersDiagonalForGrid' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxMetersDiagonalForGrid' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxMetersDiagonalForGrid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | // MARK: Audio
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:98:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 |
40 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
41 | public typealias StringLiteralType = String
42 |
:
96 |
97 |
98 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'english' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
[92/92] Compiling W3WSwiftApi What3WordsV4.swift
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:17:14: warning: static property 'domains' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
15 | static let apiVersion = "4.0.0"
16 |
17 | static var domains = ["what3words.com", "w3w.io"]
| |- warning: static property 'domains' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'domains' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'domains' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:22:14: warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
20 | // MARK: Defaults
21 |
22 | static var defaultDebounceDelay = 0.3
| |- warning: static property 'defaultDebounceDelay' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDebounceDelay' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultDebounceDelay' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Constants
/Users/admin/builder/spi-builder-workspace/Sources/W3WSwiftApi/W3WSettings.swift:26:21: warning: static property 'maxMetersDiagonalForGrid' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | // MARK: Constants
25 |
26 | public static var maxMetersDiagonalForGrid = 4000.0
| |- warning: static property 'maxMetersDiagonalForGrid' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'maxMetersDiagonalForGrid' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'maxMetersDiagonalForGrid' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | // MARK: Audio
/Users/admin/builder/spi-builder-workspace/.build/checkouts/w3w-swift-core/Sources/W3WSwiftCore/Types/Values/W3WLanguage.swift:98:21: warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
38 |
39 |
40 | public struct W3WBaseLanguage: W3WLanguage, ExpressibleByStringLiteral {
| `- note: consider making struct 'W3WBaseLanguage' conform to the 'Sendable' protocol
41 | public typealias StringLiteralType = String
42 |
:
96 |
97 |
98 | static public let english = W3WBaseLanguage(locale: "en_gb")
| |- warning: static property 'english' is not concurrency-safe because non-'Sendable' type 'W3WBaseLanguage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'english' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
99 | }
100 |
Build complete! (46.35s)
Fetching https://github.com/what3words/w3w-swift-core.git
[1/160] Fetching w3w-swift-core
Fetched https://github.com/what3words/w3w-swift-core.git from cache (0.80s)
Computing version for https://github.com/what3words/w3w-swift-core.git
Computed https://github.com/what3words/w3w-swift-core.git at 1.0.1 (0.67s)
Creating working copy for https://github.com/what3words/w3w-swift-core.git
Working copy of https://github.com/what3words/w3w-swift-core.git resolved at 1.0.1
Build complete.
{
"dependencies" : [
{
"identity" : "w3w-swift-core",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/what3words/w3w-swift-core.git"
}
],
"manifest_display_name" : "w3w-swift-wrapper",
"name" : "w3w-swift-wrapper",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.12"
},
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "2.0"
}
],
"products" : [
{
"name" : "W3WSwiftApi",
"targets" : [
"W3WSwiftApi"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "W3WSwiftVoiceApi",
"targets" : [
"W3WSwiftVoiceApi"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "w3w_swift_wrapperTests",
"module_type" : "SwiftTarget",
"name" : "w3w-swift-wrapperTests",
"path" : "Tests/w3w-swift-wrapperTests",
"sources" : [
"w3w_swift_wrapperTests.swift"
],
"target_dependencies" : [
"W3WSwiftApi"
],
"type" : "test"
},
{
"c99name" : "w3w_swift_wrapper_voiceTests",
"module_type" : "SwiftTarget",
"name" : "w3w-swift-wrapper-voiceTests",
"path" : "Tests/w3w-swift-wrapper-voiceTests",
"sources" : [
"w3w_swift_wrapperTests.swift"
],
"target_dependencies" : [
"W3WSwiftVoiceApi"
],
"type" : "test"
},
{
"c99name" : "W3WSwiftVoiceApi",
"module_type" : "SwiftTarget",
"name" : "W3WSwiftVoiceApi",
"path" : "Sources/W3WSwiftVoiceApi",
"product_dependencies" : [
"W3WSwiftCore"
],
"product_memberships" : [
"W3WSwiftApi",
"W3WSwiftVoiceApi"
],
"sources" : [
"Extensions/W3WError.swift",
"Extensions/W3WVoiceSuggestion.swift",
"Json/JsonVoiceError.swift",
"Json/JsonVoiceLanguage.swift",
"Json/JsonVoiceLanguages.swift",
"Json/JsonVoiceResponse.swift",
"Json/JsonVoiceSuggestion.swift",
"Json/W3WJsonVoiceError.swift",
"Network/W3WApiCall.swift",
"Network/W3WVoiceSocket.swift",
"Network/W3WebSocket.swift",
"Types/W3WTypes.swift",
"W3WSettings.swift",
"W3WVoiceApi.swift",
"WatchOS/W3WVoiceUpload.swift"
],
"type" : "library"
},
{
"c99name" : "W3WSwiftApi",
"module_type" : "SwiftTarget",
"name" : "W3WSwiftApi",
"path" : "Sources/W3WSwiftApi",
"product_dependencies" : [
"W3WSwiftCore"
],
"product_memberships" : [
"W3WSwiftApi"
],
"sources" : [
"Deprecated/What3WordsV3.swift",
"Enums/W3WFormat.swift",
"Enums/W3WSelectionType.swift",
"Errors/W3WWebSocketError.swift",
"Extensions/W3WApiLineExtension.swift",
"Extensions/W3WApiSquareExtension.swift",
"Extensions/W3WApiSuggestionExtension.swift",
"Extensions/W3WErrorExtension.swift",
"Json/JsonBoundingSquare.swift",
"Json/JsonCoordinates.swift",
"Json/JsonEnd.swift",
"Json/JsonError.swift",
"Json/JsonLanguage.swift",
"Json/JsonLanguages.swift",
"Json/JsonLine.swift",
"Json/JsonLines.swift",
"Json/JsonNortheast.swift",
"Json/JsonSouthwest.swift",
"Json/JsonSquare.swift",
"Json/JsonSquareSuggestions.swift",
"Json/JsonStart.swift",
"Json/JsonSuggestion.swift",
"Json/JsonSuggestions.swift",
"Types/ExportCoreTypes.swift",
"Types/Types.swift",
"Voice/What3Words+VoiceAPI.swift",
"W3WAutosuggestHelper.swift",
"W3WSettings.swift",
"What3WordsV4.swift"
],
"target_dependencies" : [
"W3WSwiftVoiceApi"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.