Build Information
Successful build of TermiNetwork, reference master (fe8894
), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 06:08:40 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/billp/TermiNetwork.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/billp/TermiNetwork
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at fe88949 Prepare for v4.1.2
Cloned https://github.com/billp/TermiNetwork.git
Revision (git rev-parse @):
fe8894964009cf40f2d25dc22ac13cdda5a8f07b
SUCCESS checkout https://github.com/billp/TermiNetwork.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/billp/TermiNetwork.git
https://github.com/billp/TermiNetwork.git
{
"dependencies" : [
],
"manifest_display_name" : "TermiNetwork",
"name" : "TermiNetwork",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "TermiNetwork",
"targets" : [
"TermiNetwork"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "TermiNetwork",
"module_type" : "SwiftTarget",
"name" : "TermiNetwork",
"path" : "Source",
"product_memberships" : [
"TermiNetwork"
],
"sources" : [
"Cache.swift",
"CertificatePinningManager.swift",
"Client.swift",
"Configuration.swift",
"EndpointConfiguration.swift",
"Enums/EnvironmentType.swift",
"Enums/HttpMethod.swift",
"Enums/InterceptionAction.swift",
"Enums/MultipartFormDataStream.swift",
"Enums/Path.swift",
"Enums/PathType.swift",
"Enums/QueueFailureMode.swift",
"Enums/RequestBodyType.swift",
"Enums/RequestType.swift",
"Enums/TNError.swift",
"Enums/URLScheme.swift",
"Environment.swift",
"Extensions/Data+Extensions.swift",
"Extensions/Dictionary+Extensions.swift",
"Extensions/Operations/Decodable+Transformer.swift",
"Extensions/Operations/Request+DataOperations.swift",
"Extensions/Operations/Request+FileOperations.swift",
"Extensions/Operations/Request+FileOperationsAsync.swift",
"Extensions/Request+Async.swift",
"Extensions/Request+Interceptors.swift",
"Extensions/Request+Middleware.swift",
"Extensions/Request+Mock.swift",
"Extensions/Request+NSCopying.swift",
"Extensions/Request+ResponseHeaders.swift",
"Extensions/Request+ResponseTypes.swift",
"Extensions/UIImage+Extensions.swift",
"Extensions/UIImageView+Extensions.swift",
"Extensions/URLRequest+Extensions.swift",
"FileStreamer.swift",
"Helpers/MultipartFormDataHelpers.swift",
"Helpers/RequestBodyGenerators.swift",
"Helpers/RequestHelpers.swift",
"Log.swift",
"MultipartFormDataPartType.swift",
"Operation.swift",
"Protocols/EndpointProtocol.swift",
"Protocols/InterceptorProtocol.swift",
"Protocols/RequestMiddlewareProtocol.swift",
"Queue.swift",
"Reachability.swift",
"Request.swift",
"Session.swift",
"SessionTaskFactory.swift",
"SwiftUI/Image.swift",
"Types.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/48] Emitting module TermiNetwork
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Source/Enums/TNError.swift:51:10: warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
49 | /// Thrown when a middleware reports an error. Throw this error in your custom middleware
50 | /// implementations if needed. It contains a custom type.
51 | case middlewareError(Any)
| `- warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | /// Thrown when MultipartFormDataPartType param is expected but passed something else.
53 | case invalidMultipartParams
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
[4/53] Compiling TermiNetwork PathType.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/TNError.swift:51:10: warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
49 | /// Thrown when a middleware reports an error. Throw this error in your custom middleware
50 | /// implementations if needed. It contains a custom type.
51 | case middlewareError(Any)
| `- warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | /// Thrown when MultipartFormDataPartType param is expected but passed something else.
53 | case invalidMultipartParams
[5/53] Compiling TermiNetwork QueueFailureMode.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/TNError.swift:51:10: warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
49 | /// Thrown when a middleware reports an error. Throw this error in your custom middleware
50 | /// implementations if needed. It contains a custom type.
51 | case middlewareError(Any)
| `- warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | /// Thrown when MultipartFormDataPartType param is expected but passed something else.
53 | case invalidMultipartParams
[6/53] Compiling TermiNetwork RequestBodyType.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/TNError.swift:51:10: warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
49 | /// Thrown when a middleware reports an error. Throw this error in your custom middleware
50 | /// implementations if needed. It contains a custom type.
51 | case middlewareError(Any)
| `- warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | /// Thrown when MultipartFormDataPartType param is expected but passed something else.
53 | case invalidMultipartParams
[7/53] Compiling TermiNetwork RequestType.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/TNError.swift:51:10: warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
49 | /// Thrown when a middleware reports an error. Throw this error in your custom middleware
50 | /// implementations if needed. It contains a custom type.
51 | case middlewareError(Any)
| `- warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | /// Thrown when MultipartFormDataPartType param is expected but passed something else.
53 | case invalidMultipartParams
[8/53] Compiling TermiNetwork TNError.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/TNError.swift:51:10: warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
49 | /// Thrown when a middleware reports an error. Throw this error in your custom middleware
50 | /// implementations if needed. It contains a custom type.
51 | case middlewareError(Any)
| `- warning: associated value 'middlewareError' of 'Sendable'-conforming enum 'TNError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
52 | /// Thrown when MultipartFormDataPartType param is expected but passed something else.
53 | case invalidMultipartParams
[9/53] Compiling TermiNetwork EnvironmentType.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
[10/53] Compiling TermiNetwork HttpMethod.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
[11/53] Compiling TermiNetwork InterceptionAction.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
[12/53] Compiling TermiNetwork MultipartFormDataStream.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
[13/53] Compiling TermiNetwork Path.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated 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: add '@MainActor' to make static property 'bufferSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
[14/53] Compiling TermiNetwork Request+Middleware.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Mock.swift:75:74: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
72 |
73 | fileprivate func delay(_ delay: TimeInterval,
74 | block: @escaping (() -> Void)) {
| `- note: parameter 'block' is implicitly non-sendable
75 | DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
76 | }
77 |
[15/53] Compiling TermiNetwork Request+Mock.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Mock.swift:75:74: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
72 |
73 | fileprivate func delay(_ delay: TimeInterval,
74 | block: @escaping (() -> Void)) {
| `- note: parameter 'block' is implicitly non-sendable
75 | DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
76 | }
77 |
[16/53] Compiling TermiNetwork Request+NSCopying.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Mock.swift:75:74: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
72 |
73 | fileprivate func delay(_ delay: TimeInterval,
74 | block: @escaping (() -> Void)) {
| `- note: parameter 'block' is implicitly non-sendable
75 | DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
76 | }
77 |
[17/53] Compiling TermiNetwork Request+ResponseHeaders.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Mock.swift:75:74: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
72 |
73 | fileprivate func delay(_ delay: TimeInterval,
74 | block: @escaping (() -> Void)) {
| `- note: parameter 'block' is implicitly non-sendable
75 | DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
76 | }
77 |
[18/53] Compiling TermiNetwork Request+ResponseTypes.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Mock.swift:75:74: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
72 |
73 | fileprivate func delay(_ delay: TimeInterval,
74 | block: @escaping (() -> Void)) {
| `- note: parameter 'block' is implicitly non-sendable
75 | DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: block)
| `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
76 | }
77 |
[19/53] Compiling TermiNetwork RequestBodyGenerators.swift
[20/53] Compiling TermiNetwork RequestHelpers.swift
[21/53] Compiling TermiNetwork Log.swift
[22/53] Compiling TermiNetwork MultipartFormDataPartType.swift
[23/53] Compiling TermiNetwork Operation.swift
[24/53] Compiling TermiNetwork Cache.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:43:31: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
20 | import Foundation
21 |
22 | class CertificatePinningManager {
| `- note: class 'CertificatePinningManager' does not conform to the 'Sendable' protocol
23 | var challenge: URLAuthenticationChallenge
24 | var completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
:
41 | }
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
45 | let policies = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:44:63: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
45 | let policies = NSMutableArray()
46 | policies.add(SecPolicyCreateSSL(true, (self.challenge.protectionSpace.host as CFString)))
Security.SecTrust:1:14: note: class 'SecTrust' does not conform to the 'Sendable' protocol
1 | public class SecTrust : _CFObject {
| `- note: class 'SecTrust' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
18 | // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
21 |
22 | class CertificatePinningManager {
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:55:21: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
53 | let remoteCertificateData: NSData = SecCertificateCopyData(remoteCert)
54 | if isServerTrusted && error == nil && certData.contains(remoteCertificateData) {
55 | challengeDisposition = .useCredential
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
56 | } else {
57 | self.request?.pinningErrorOccured = true
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:60:17: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
61 | }
62 |
[25/53] Compiling TermiNetwork CertificatePinningManager.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:43:31: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
20 | import Foundation
21 |
22 | class CertificatePinningManager {
| `- note: class 'CertificatePinningManager' does not conform to the 'Sendable' protocol
23 | var challenge: URLAuthenticationChallenge
24 | var completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
:
41 | }
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
45 | let policies = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:44:63: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
45 | let policies = NSMutableArray()
46 | policies.add(SecPolicyCreateSSL(true, (self.challenge.protectionSpace.host as CFString)))
Security.SecTrust:1:14: note: class 'SecTrust' does not conform to the 'Sendable' protocol
1 | public class SecTrust : _CFObject {
| `- note: class 'SecTrust' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
18 | // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
21 |
22 | class CertificatePinningManager {
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:55:21: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
53 | let remoteCertificateData: NSData = SecCertificateCopyData(remoteCert)
54 | if isServerTrusted && error == nil && certData.contains(remoteCertificateData) {
55 | challengeDisposition = .useCredential
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
56 | } else {
57 | self.request?.pinningErrorOccured = true
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:60:17: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
61 | }
62 |
[26/53] Compiling TermiNetwork Client.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:43:31: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
20 | import Foundation
21 |
22 | class CertificatePinningManager {
| `- note: class 'CertificatePinningManager' does not conform to the 'Sendable' protocol
23 | var challenge: URLAuthenticationChallenge
24 | var completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
:
41 | }
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
45 | let policies = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:44:63: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
45 | let policies = NSMutableArray()
46 | policies.add(SecPolicyCreateSSL(true, (self.challenge.protectionSpace.host as CFString)))
Security.SecTrust:1:14: note: class 'SecTrust' does not conform to the 'Sendable' protocol
1 | public class SecTrust : _CFObject {
| `- note: class 'SecTrust' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
18 | // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
21 |
22 | class CertificatePinningManager {
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:55:21: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
53 | let remoteCertificateData: NSData = SecCertificateCopyData(remoteCert)
54 | if isServerTrusted && error == nil && certData.contains(remoteCertificateData) {
55 | challengeDisposition = .useCredential
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
56 | } else {
57 | self.request?.pinningErrorOccured = true
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:60:17: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
61 | }
62 |
[27/53] Compiling TermiNetwork Configuration.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:43:31: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
20 | import Foundation
21 |
22 | class CertificatePinningManager {
| `- note: class 'CertificatePinningManager' does not conform to the 'Sendable' protocol
23 | var challenge: URLAuthenticationChallenge
24 | var completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
:
41 | }
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
45 | let policies = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:44:63: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
45 | let policies = NSMutableArray()
46 | policies.add(SecPolicyCreateSSL(true, (self.challenge.protectionSpace.host as CFString)))
Security.SecTrust:1:14: note: class 'SecTrust' does not conform to the 'Sendable' protocol
1 | public class SecTrust : _CFObject {
| `- note: class 'SecTrust' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
18 | // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
21 |
22 | class CertificatePinningManager {
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:55:21: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
53 | let remoteCertificateData: NSData = SecCertificateCopyData(remoteCert)
54 | if isServerTrusted && error == nil && certData.contains(remoteCertificateData) {
55 | challengeDisposition = .useCredential
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
56 | } else {
57 | self.request?.pinningErrorOccured = true
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:60:17: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
61 | }
62 |
[28/53] Compiling TermiNetwork EndpointConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:43:31: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
20 | import Foundation
21 |
22 | class CertificatePinningManager {
| `- note: class 'CertificatePinningManager' does not conform to the 'Sendable' protocol
23 | var challenge: URLAuthenticationChallenge
24 | var completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
:
41 | }
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a '@Sendable' closure
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
45 | let policies = NSMutableArray()
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:44:63: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
42 | DispatchQueue.global(qos: .background).async {
43 | if let certData = self.request?.configuration.certificateData,
44 | let remoteCert = SecTrustGetCertificateAtIndex(serverTrust, 0) {
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a '@Sendable' closure
45 | let policies = NSMutableArray()
46 | policies.add(SecPolicyCreateSSL(true, (self.challenge.protectionSpace.host as CFString)))
Security.SecTrust:1:14: note: class 'SecTrust' does not conform to the 'Sendable' protocol
1 | public class SecTrust : _CFObject {
| `- note: class 'SecTrust' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:20:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
18 | // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Security'
21 |
22 | class CertificatePinningManager {
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:55:21: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
53 | let remoteCertificateData: NSData = SecCertificateCopyData(remoteCert)
54 | if isServerTrusted && error == nil && certData.contains(remoteCertificateData) {
55 | challengeDisposition = .useCredential
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
56 | } else {
57 | self.request?.pinningErrorOccured = true
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:60:17: warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code
61 | }
62 |
[29/53] Compiling TermiNetwork Request+DataOperations.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:41:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | upload(progressUpdate: progressUpdate)
40 | .success(responseType: type) { response in
41 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
42 | }
43 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:70:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
68 | upload(progressUpdate: progressUpdate)
69 | .success(transformer: transformer) { response in
70 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
71 | }
72 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:36:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
34 | return try await withCheckedThrowingContinuation { configuration in
35 | success(responseType: T.self) { response in
36 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
37 | }
38 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:137:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
135 | return try await withCheckedThrowingContinuation { configuration in
136 | success(transformer: transformer) { response in
137 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
138 | }
139 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'finishCallback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
[30/53] Compiling TermiNetwork Request+FileOperations.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:41:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | upload(progressUpdate: progressUpdate)
40 | .success(responseType: type) { response in
41 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
42 | }
43 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:70:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
68 | upload(progressUpdate: progressUpdate)
69 | .success(transformer: transformer) { response in
70 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
71 | }
72 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:36:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
34 | return try await withCheckedThrowingContinuation { configuration in
35 | success(responseType: T.self) { response in
36 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
37 | }
38 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:137:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
135 | return try await withCheckedThrowingContinuation { configuration in
136 | success(transformer: transformer) { response in
137 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
138 | }
139 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'finishCallback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
[31/53] Compiling TermiNetwork Request+FileOperationsAsync.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:41:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | upload(progressUpdate: progressUpdate)
40 | .success(responseType: type) { response in
41 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
42 | }
43 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:70:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
68 | upload(progressUpdate: progressUpdate)
69 | .success(transformer: transformer) { response in
70 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
71 | }
72 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:36:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
34 | return try await withCheckedThrowingContinuation { configuration in
35 | success(responseType: T.self) { response in
36 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
37 | }
38 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:137:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
135 | return try await withCheckedThrowingContinuation { configuration in
136 | success(transformer: transformer) { response in
137 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
138 | }
139 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'finishCallback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
[32/53] Compiling TermiNetwork Request+Async.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:41:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | upload(progressUpdate: progressUpdate)
40 | .success(responseType: type) { response in
41 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
42 | }
43 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:70:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
68 | upload(progressUpdate: progressUpdate)
69 | .success(transformer: transformer) { response in
70 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
71 | }
72 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:36:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
34 | return try await withCheckedThrowingContinuation { configuration in
35 | success(responseType: T.self) { response in
36 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
37 | }
38 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:137:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
135 | return try await withCheckedThrowingContinuation { configuration in
136 | success(transformer: transformer) { response in
137 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
138 | }
139 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'finishCallback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
[33/53] Compiling TermiNetwork Request+Interceptors.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:41:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
39 | upload(progressUpdate: progressUpdate)
40 | .success(responseType: type) { response in
41 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
42 | }
43 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Operations/Request+FileOperationsAsync.swift:70:39: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
68 | upload(progressUpdate: progressUpdate)
69 | .success(transformer: transformer) { response in
70 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
71 | }
72 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:36:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
34 | return try await withCheckedThrowingContinuation { configuration in
35 | success(responseType: T.self) { response in
36 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
37 | }
38 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Async.swift:137:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
135 | return try await withCheckedThrowingContinuation { configuration in
136 | success(transformer: transformer) { response in
137 | configuration.resume(returning: response)
| |- warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
| `- note: main actor-isolated 'response' is passed as a 'sending' parameter; Uses in callee may race with later main actor-isolated uses
138 | }
139 | .failure { error in
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: sending 'finishCallback' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'finishCallback' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
[34/53] Compiling TermiNetwork URLScheme.swift
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Set a global environment for TermiNetwork.
[35/53] Compiling TermiNetwork Environment.swift
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Set a global environment for TermiNetwork.
[36/53] Compiling TermiNetwork Data+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Set a global environment for TermiNetwork.
[37/53] Compiling TermiNetwork Dictionary+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Set a global environment for TermiNetwork.
[38/53] Compiling TermiNetwork Decodable+Transformer.swift
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'current' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
44 |
45 | /// Set a global environment for TermiNetwork.
[39/53] Compiling TermiNetwork EndpointProtocol.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
22 | #if !os(watchOS)
23 |
24 | import SystemConfiguration
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
25 |
26 | /// Reachability State Type
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:141:13: warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
40 |
41 | /// Adds Reachability supportt
42 | open class Reachability {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
43 | // MARK: Static properties
44 |
:
139 | }
140 |
141 | self?.updateFlags(success ? flags : nil)
| `- warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- 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
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:46: warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'state' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- 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
179 | }
180 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:46: warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lastState' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
179 | }
180 | }
[40/53] Compiling TermiNetwork InterceptorProtocol.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
22 | #if !os(watchOS)
23 |
24 | import SystemConfiguration
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
25 |
26 | /// Reachability State Type
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:141:13: warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
40 |
41 | /// Adds Reachability supportt
42 | open class Reachability {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
43 | // MARK: Static properties
44 |
:
139 | }
140 |
141 | self?.updateFlags(success ? flags : nil)
| `- warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- 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
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:46: warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'state' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- 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
179 | }
180 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:46: warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lastState' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
179 | }
180 | }
[41/53] Compiling TermiNetwork RequestMiddlewareProtocol.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
22 | #if !os(watchOS)
23 |
24 | import SystemConfiguration
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
25 |
26 | /// Reachability State Type
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:141:13: warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
40 |
41 | /// Adds Reachability supportt
42 | open class Reachability {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
43 | // MARK: Static properties
44 |
:
139 | }
140 |
141 | self?.updateFlags(success ? flags : nil)
| `- warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- 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
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:46: warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'state' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- 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
179 | }
180 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:46: warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lastState' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
179 | }
180 | }
[42/53] Compiling TermiNetwork Queue.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
22 | #if !os(watchOS)
23 |
24 | import SystemConfiguration
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
25 |
26 | /// Reachability State Type
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:141:13: warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
40 |
41 | /// Adds Reachability supportt
42 | open class Reachability {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
43 | // MARK: Static properties
44 |
:
139 | }
140 |
141 | self?.updateFlags(success ? flags : nil)
| `- warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- 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
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:46: warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'state' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- 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
179 | }
180 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:46: warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lastState' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
179 | }
180 | }
[43/53] Compiling TermiNetwork Reachability.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in a '@Sendable' closure
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:24:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
22 | #if !os(watchOS)
23 |
24 | import SystemConfiguration
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SystemConfiguration'
25 |
26 | /// Reachability State Type
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:141:13: warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
40 |
41 | /// Adds Reachability supportt
42 | open class Reachability {
| `- note: class 'Reachability' does not conform to the 'Sendable' protocol
43 | // MARK: Static properties
44 |
:
139 | }
140 |
141 | self?.updateFlags(success ? flags : nil)
| `- warning: capture of 'self' with non-sendable type 'Reachability?' in a '@Sendable' closure
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:138:47: warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
136 | var flags = SCNetworkReachabilityFlags()
137 | let success = withUnsafeMutablePointer(to: &flags) {
138 | SCNetworkReachabilityGetFlags(reachability, UnsafeMutablePointer($0))
| `- warning: capture of 'reachability' with non-sendable type 'SCNetworkReachability' in an isolated closure; this is an error in the Swift 6 language mode
139 | }
140 |
SystemConfiguration.SCNetworkReachability:1:14: note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
1 | public class SCNetworkReachability : _CFObject {
| `- note: class 'SCNetworkReachability' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- 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
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:100:46: warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
98 | lastState = state
99 | DispatchQueue.main.async {
100 | self.monitorUpdatesCallback?(state)
| |- warning: sending 'state' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'state' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
101 | }
102 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- 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
179 | }
180 | }
/Users/admin/builder/spi-builder-workspace/Source/Reachability.swift:178:46: warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
176 | if let lastState = lastState {
177 | DispatchQueue.main.async {
178 | self.monitorUpdatesCallback?(lastState)
| |- warning: sending 'lastState' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'lastState' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
179 | }
180 | }
[44/53] Compiling TermiNetwork UIImage+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:140:21: warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
138 | self.image = image
139 | #endif
140 | onFinish?(image, nil)
| |- warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: mutation of captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:42: warning: reference to captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:52: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:21: warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:29: warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 |
[45/53] Compiling TermiNetwork UIImageView+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:140:21: warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
138 | self.image = image
139 | #endif
140 | onFinish?(image, nil)
| |- warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: mutation of captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:42: warning: reference to captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:52: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:21: warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:29: warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 |
[46/53] Compiling TermiNetwork URLRequest+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:140:21: warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
138 | self.image = image
139 | #endif
140 | onFinish?(image, nil)
| |- warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: mutation of captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:42: warning: reference to captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:52: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:21: warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:29: warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 |
[47/53] Compiling TermiNetwork FileStreamer.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:140:21: warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
138 | self.image = image
139 | #endif
140 | onFinish?(image, nil)
| |- warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: mutation of captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:42: warning: reference to captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:52: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:21: warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:29: warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 |
[48/53] Compiling TermiNetwork MultipartFormDataHelpers.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType?' (aka 'Optional<(NSImage) -> NSImage>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:140:21: warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
138 | self.image = image
139 | #endif
140 | onFinish?(image, nil)
| |- warning: capture of 'onFinish' with non-sendable type 'ImageOnFinishCallbackType?' (aka 'Optional<(Optional<NSImage>, Optional<TNError>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: mutation of captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:42: warning: reference to captured var 'image' in concurrently-executing code
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:52: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:21: warning: mutation of captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:29: warning: reference to captured var 'image' in concurrently-executing code
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | }
133 |
[49/53] Compiling TermiNetwork Request.swift
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:68:17: warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
66 |
67 | if let tnError = dataResult.tnError {
68 | onFailure?(data, tnError)
| |- warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:70:17: warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
68 | onFailure?(data, tnError)
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
136 |
137 | DispatchQueue.main.async {
138 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:140:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
138 | self.updateImage(image)
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:17: warning: mutation of captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:41: warning: reference to captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
151 | let image = image.tn_resize(size) ?? image
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
154 | onFinish?(image)
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:154:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
154 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
155 | }
156 | }
[50/53] Compiling TermiNetwork Session.swift
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:68:17: warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
66 |
67 | if let tnError = dataResult.tnError {
68 | onFailure?(data, tnError)
| |- warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:70:17: warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
68 | onFailure?(data, tnError)
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
136 |
137 | DispatchQueue.main.async {
138 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:140:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
138 | self.updateImage(image)
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:17: warning: mutation of captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:41: warning: reference to captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
151 | let image = image.tn_resize(size) ?? image
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
154 | onFinish?(image)
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:154:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
154 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
155 | }
156 | }
[51/53] Compiling TermiNetwork SessionTaskFactory.swift
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:68:17: warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
66 |
67 | if let tnError = dataResult.tnError {
68 | onFailure?(data, tnError)
| |- warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:70:17: warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
68 | onFailure?(data, tnError)
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
136 |
137 | DispatchQueue.main.async {
138 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:140:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
138 | self.updateImage(image)
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:17: warning: mutation of captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:41: warning: reference to captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
151 | let image = image.tn_resize(size) ?? image
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
154 | onFinish?(image)
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:154:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
154 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
155 | }
156 | }
[52/53] Compiling TermiNetwork Image.swift
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:68:17: warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
66 |
67 | if let tnError = dataResult.tnError {
68 | onFailure?(data, tnError)
| |- warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:70:17: warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
68 | onFailure?(data, tnError)
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
136 |
137 | DispatchQueue.main.async {
138 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:140:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
138 | self.updateImage(image)
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:17: warning: mutation of captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:41: warning: reference to captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
151 | let image = image.tn_resize(size) ?? image
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
154 | onFinish?(image)
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:154:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
154 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
155 | }
156 | }
[53/53] Compiling TermiNetwork Types.swift
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:68:17: warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
66 |
67 | if let tnError = dataResult.tnError {
68 | onFailure?(data, tnError)
| |- warning: capture of 'onFailure' with non-sendable type 'FailureCallbackWithType<Data>?' (aka 'Optional<(Optional<Data>, TNError) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
/Users/admin/builder/spi-builder-workspace/Source/SessionTaskFactory.swift:70:17: warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
68 | onFailure?(data, tnError)
69 | } else {
70 | completionHandler?(dataResult.data, urlResponse)
| |- warning: capture of 'completionHandler' with non-sendable type '((Data?, URLResponse?) -> Void)?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> NSImage') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
136 |
137 | DispatchQueue.main.async {
138 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:140:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
138 | self.updateImage(image)
139 | self.onFinishImageClosure?(image, nil)
140 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType?) -> Void)?' (aka 'Optional<(Optional<NSImage>) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }
142 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:17: warning: mutation of captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:135:41: warning: reference to captured var 'image' in concurrently-executing code
133 | if let preprocessImage = self.preprocessImageClosure {
134 | DispatchQueue.global(qos: .background).async {
135 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code
136 |
137 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
45 | @available(iOS 13.0, *)
46 | /// :nodoc:
47 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
48 | private var request: Request
49 | private var url: String?
:
151 | let image = image.tn_resize(size) ?? image
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a '@Sendable' closure
154 | onFinish?(image)
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:154:21: warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
152 | DispatchQueue.main.async {
153 | self.updateImage(image)
154 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((TNImageType) -> Void)?' (aka 'Optional<(NSImage) -> ()>') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
155 | }
156 | }
Build complete! (10.06s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "TermiNetwork",
"name" : "TermiNetwork",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "TermiNetwork",
"targets" : [
"TermiNetwork"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "TermiNetwork",
"module_type" : "SwiftTarget",
"name" : "TermiNetwork",
"path" : "Source",
"product_memberships" : [
"TermiNetwork"
],
"sources" : [
"Cache.swift",
"CertificatePinningManager.swift",
"Client.swift",
"Configuration.swift",
"EndpointConfiguration.swift",
"Enums/EnvironmentType.swift",
"Enums/HttpMethod.swift",
"Enums/InterceptionAction.swift",
"Enums/MultipartFormDataStream.swift",
"Enums/Path.swift",
"Enums/PathType.swift",
"Enums/QueueFailureMode.swift",
"Enums/RequestBodyType.swift",
"Enums/RequestType.swift",
"Enums/TNError.swift",
"Enums/URLScheme.swift",
"Environment.swift",
"Extensions/Data+Extensions.swift",
"Extensions/Dictionary+Extensions.swift",
"Extensions/Operations/Decodable+Transformer.swift",
"Extensions/Operations/Request+DataOperations.swift",
"Extensions/Operations/Request+FileOperations.swift",
"Extensions/Operations/Request+FileOperationsAsync.swift",
"Extensions/Request+Async.swift",
"Extensions/Request+Interceptors.swift",
"Extensions/Request+Middleware.swift",
"Extensions/Request+Mock.swift",
"Extensions/Request+NSCopying.swift",
"Extensions/Request+ResponseHeaders.swift",
"Extensions/Request+ResponseTypes.swift",
"Extensions/UIImage+Extensions.swift",
"Extensions/UIImageView+Extensions.swift",
"Extensions/URLRequest+Extensions.swift",
"FileStreamer.swift",
"Helpers/MultipartFormDataHelpers.swift",
"Helpers/RequestBodyGenerators.swift",
"Helpers/RequestHelpers.swift",
"Log.swift",
"MultipartFormDataPartType.swift",
"Operation.swift",
"Protocols/EndpointProtocol.swift",
"Protocols/InterceptorProtocol.swift",
"Protocols/RequestMiddlewareProtocol.swift",
"Queue.swift",
"Reachability.swift",
"Request.swift",
"Session.swift",
"SessionTaskFactory.swift",
"SwiftUI/Image.swift",
"Types.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.