Build Information
Successful build of TermiNetwork, reference 3.2.0 (a14e4d
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 05:35:07 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
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 | }
[13/45] 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:64:17: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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
:
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:65:61: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
65 | URLCredential(trust: serverTrust))
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | }
67 | }
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:64:40: warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
[14/45] 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:64:17: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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
:
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:65:61: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
65 | URLCredential(trust: serverTrust))
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | }
67 | }
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:64:40: warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
[15/45] 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:64:17: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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
:
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:65:61: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
65 | URLCredential(trust: serverTrust))
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | }
67 | }
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:64:40: warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
[16/45] Compiling TermiNetwork Environment.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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:64:17: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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
:
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:65:61: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
65 | URLCredential(trust: serverTrust))
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | }
67 | }
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:64:40: warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
[17/45] Compiling TermiNetwork Data+Extensions.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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
58 | }
59 | } else {
60 | challengeDisposition = .performDefaultHandling
| `- warning: mutation of captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
61 | }
62 |
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:64:17: warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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
:
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: capture of 'self' with non-sendable type 'CertificatePinningManager' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/CertificatePinningManager.swift:65:61: warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
65 | URLCredential(trust: serverTrust))
| `- warning: capture of 'serverTrust' with non-sendable type 'SecTrust' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | }
67 | }
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:64:40: warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
62 |
63 | DispatchQueue.main.async {
64 | self.completionHandler(challengeDisposition,
| `- warning: reference to captured var 'challengeDisposition' in concurrently-executing code; this is an error in the Swift 6 language mode
65 | URLCredential(trust: serverTrust))
66 | }
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
[18/45] Compiling TermiNetwork Request+NSCopying.swift
[19/45] Compiling TermiNetwork Request+ResponseHeaders.swift
[20/45] Compiling TermiNetwork Request+ResponseTypes.swift
[21/45] Compiling TermiNetwork UIImage+Extensions.swift
[22/45] Compiling TermiNetwork Request.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:57: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
55 |
56 | /// The default queue of TermiNetwork used in all Request objects.
57 | 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:53:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
51 |
52 | /// The core class of TermiNetwork. It handles the request creation and its execution.
53 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
54 | // MARK: Internal properties
55 |
/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?
[23/45] Compiling TermiNetwork RouteConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:57: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
55 |
56 | /// The default queue of TermiNetwork used in all Request objects.
57 | 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:53:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
51 |
52 | /// The core class of TermiNetwork. It handles the request creation and its execution.
53 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
54 | // MARK: Internal properties
55 |
/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?
[24/45] Compiling TermiNetwork Router.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:57: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
55 |
56 | /// The default queue of TermiNetwork used in all Request objects.
57 | 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:53:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
51 |
52 | /// The core class of TermiNetwork. It handles the request creation and its execution.
53 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
54 | // MARK: Internal properties
55 |
/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?
[25/45] Compiling TermiNetwork Session.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:57: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
55 |
56 | /// The default queue of TermiNetwork used in all Request objects.
57 | 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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:53: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
51 | // MARK: Static members
52 | /// The current global environment. Use this property to set your environment globally.
53 | 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: annotate 'current' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:53:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
51 |
52 | /// The core class of TermiNetwork. It handles the request creation and its execution.
53 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
54 | // MARK: Internal properties
55 |
/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?
[26/45] Compiling TermiNetwork Request+Async.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
/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 |
/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:114:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
112 | return try await withCheckedThrowingContinuation { configuration in
113 | success(responseType: ImageType.self) { response in
114 | 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
115 | }
116 | .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,
[27/45] Compiling TermiNetwork Request+Interceptors.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
/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 |
/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:114:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
112 | return try await withCheckedThrowingContinuation { configuration in
113 | success(responseType: ImageType.self) { response in
114 | 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
115 | }
116 | .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,
[28/45] Compiling TermiNetwork Request+Middleware.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
/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 |
/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:114:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
112 | return try await withCheckedThrowingContinuation { configuration in
113 | success(responseType: ImageType.self) { response in
114 | 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
115 | }
116 | .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,
[29/45] Compiling TermiNetwork Request+Mock.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/Request+Interceptors.swift:136:55: warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
134 | case .data:
135 | self.retryDataRequest(request: newRequest,
136 | finishCallback: finishCallback)
| |- warning: capture of 'finishCallback' with non-sendable type 'InterceptorFinishedCallbackType' (aka '(Optional<Data>, Optional<TNError>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
137 | case .upload:
138 | self.retryUploadRequest(request: newRequest,
/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 |
/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:114:35: warning: sending 'response' risks causing data races; this is an error in the Swift 6 language mode
112 | return try await withCheckedThrowingContinuation { configuration in
113 | success(responseType: ImageType.self) { response in
114 | 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
115 | }
116 | .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/45] Compiling TermiNetwork MultipartFormDataStream.swift
/Users/admin/builder/spi-builder-workspace/Source/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: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Source/Operation.swift:25:14: warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// This class is inherited by Request to control the execution of the request.
25 | public class Operation: Foundation.Operation {
| `- warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
26 | internal var _executing = false {
27 | willSet {
[31/45] Compiling TermiNetwork Operation.swift
/Users/admin/builder/spi-builder-workspace/Source/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: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Source/Operation.swift:25:14: warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// This class is inherited by Request to control the execution of the request.
25 | public class Operation: Foundation.Operation {
| `- warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
26 | internal var _executing = false {
27 | willSet {
[32/45] Compiling TermiNetwork Path.swift
/Users/admin/builder/spi-builder-workspace/Source/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: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Source/Operation.swift:25:14: warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// This class is inherited by Request to control the execution of the request.
25 | public class Operation: Foundation.Operation {
| `- warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
26 | internal var _executing = false {
27 | willSet {
[33/45] Compiling TermiNetwork InterceptorProtocol.swift
/Users/admin/builder/spi-builder-workspace/Source/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: annotate 'bufferSize' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | }
36 |
/Users/admin/builder/spi-builder-workspace/Source/Operation.swift:25:14: warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// This class is inherited by Request to control the execution of the request.
25 | public class Operation: Foundation.Operation {
| `- warning: class 'Operation' must restate inherited '@unchecked Sendable' conformance
26 | internal var _executing = false {
27 | willSet {
[34/45] Compiling TermiNetwork RequestBodyGenerators.swift
[35/45] Compiling TermiNetwork RequestHelpers.swift
[36/45] Compiling TermiNetwork Log.swift
[37/45] Compiling TermiNetwork MultipartFormDataPartType.swift
[38/45] Compiling TermiNetwork UIImageView+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of 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:128:42: 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:128:52: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
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; 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 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
132 | }
133 |
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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 |
[39/45] Compiling TermiNetwork URLRequest+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of 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:128:42: 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:128:52: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
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; 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 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
132 | }
133 |
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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 |
[40/45] Compiling TermiNetwork FileStreamer.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of 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:128:42: 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:128:52: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
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; 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 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
132 | }
133 |
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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 |
[41/45] Compiling TermiNetwork MultipartFormDataHelpers.swift
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:128:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: mutation of 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:128:42: 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:128:52: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
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; 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 |
/Users/admin/builder/spi-builder-workspace/Source/Extensions/UIImageView+Extensions.swift:131:56: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
129 |
130 | if let resize = resize {
131 | image = image.tn_resize(resize) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
132 | }
133 |
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/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 |
[42/45] Compiling TermiNetwork SessionTaskFactory.swift
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:117:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | DispatchQueue.global(qos: .utility).async {
116 | #if os(macOS)
117 | if let cgImage = image.cgImage(forProposedRect: nil, context: nil, hints: nil) {
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | let bitmapRep = NSBitmapImageRep(cgImage: cgImage)
119 | bitmapRep.size = image.size
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:41: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:48: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | onFinish?(image)
140 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:31: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:29: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:54: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/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
[43/45] Compiling TermiNetwork Image.swift
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:117:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | DispatchQueue.global(qos: .utility).async {
116 | #if os(macOS)
117 | if let cgImage = image.cgImage(forProposedRect: nil, context: nil, hints: nil) {
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | let bitmapRep = NSBitmapImageRep(cgImage: cgImage)
119 | bitmapRep.size = image.size
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:41: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:48: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | onFinish?(image)
140 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:31: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:29: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:54: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/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
[44/45] Compiling TermiNetwork TNError.swift
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:117:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | DispatchQueue.global(qos: .utility).async {
116 | #if os(macOS)
117 | if let cgImage = image.cgImage(forProposedRect: nil, context: nil, hints: nil) {
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | let bitmapRep = NSBitmapImageRep(cgImage: cgImage)
119 | bitmapRep.size = image.size
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:41: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:48: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | onFinish?(image)
140 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:31: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:29: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:54: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/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
[45/45] Compiling TermiNetwork Types.swift
/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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- 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; this is an error in the Swift 6 language mode
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; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
71 | }
72 | session.invalidateAndCancel()
/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: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | /// Singleton definition
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:117:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
115 | DispatchQueue.global(qos: .utility).async {
116 | #if os(macOS)
117 | if let cgImage = image.cgImage(forProposedRect: nil, context: nil, hints: nil) {
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | let bitmapRep = NSBitmapImageRep(cgImage: cgImage)
119 | bitmapRep.size = image.size
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:25: warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| |- warning: capture of 'preprocessImage' with non-sendable type 'ImagePreprocessType' (aka '(NSImage) -> (NSImage)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:17: warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: mutation of captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:134:41: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | if let preprocessImage = self.preprocessImageClosure {
133 | DispatchQueue.global(qos: .background).async {
134 | image = preprocessImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:21: warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType?) -> Void)?' (aka 'Optional<((Optional<NSImage>) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:137:38: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
135 |
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:138:48: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
136 | DispatchQueue.main.async {
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | onFinish?(image)
140 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:139:31: warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
137 | self.updateImage(image)
138 | self.onFinishImageClosure?(image, nil)
139 | onFinish?(image)
| `- warning: reference to captured var 'image' in concurrently-executing code; this is an error in the Swift 6 language mode
140 | }
141 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:29: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:150:54: warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
148 | if let size = self.resize {
149 | DispatchQueue.global(qos: .userInteractive).async {
150 | let image = image.tn_resize(size) ?? image
| `- warning: implicit capture of 'image' requires that 'ImageType' (aka 'NSImage') conforms to `Sendable`; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:21: warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | @available(iOS 13.0, *)
45 | /// :nodoc:
46 | final class ImageLoader: ObservableObject {
| `- note: class 'ImageLoader' does not conform to the 'Sendable' protocol
47 | private var request: Request
48 | private var url: String?
:
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'self' with non-sendable type 'ImageLoader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:152:38: warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | let image = image.tn_resize(size) ?? image
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
| `- warning: capture of 'image' with non-sendable type 'ImageType' (aka 'NSImage') in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | onFinish?(image)
154 | }
AppKit.NSImage:1:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
1 | open class NSImage : NSObject {
| `- note: class 'NSImage' does not conform to the 'Sendable' protocol
2 | public /*not inherited*/ init?(named name: NSImage.Name)
3 | @available(*, unavailable, renamed: "init(named:)", message: "Not available in Swift")
/Users/admin/builder/spi-builder-workspace/Source/SwiftUI/Image.swift:153:21: warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | DispatchQueue.main.async {
152 | self.updateImage(image)
153 | onFinish?(image)
| |- warning: capture of 'onFinish' with non-sendable type '((ImageType) -> Void)?' (aka 'Optional<((NSImage) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
154 | }
155 | }
/Users/admin/builder/spi-builder-workspace/Source/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
Build complete! (20.60s)
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" : "13.0"
},
{
"name" : "tvos",
"version" : "13.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",
"Configuration.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",
"MultipartFormDataStream.swift",
"Operation.swift",
"Path.swift",
"Protocols/InterceptorProtocol.swift",
"Protocols/RequestMiddlewareProtocol.swift",
"Protocols/RouteProtocol.swift",
"Queue.swift",
"Reachability.swift",
"Request.swift",
"RouteConfiguration.swift",
"Router.swift",
"Session.swift",
"SessionTaskFactory.swift",
"SwiftUI/Image.swift",
"TNError.swift",
"Types.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.