Build Information
Successful build of TermiNetwork, reference master (6573ad
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 05:35:25 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
126 |
127 | DispatchQueue.global(qos: .background).async {
128 | image = preprocessImage?(image) ?? image
| `- warning: implicit capture of 'image' requires that 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 |
[35/53] 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 |
[36/53] 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 |
[37/53] 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 |
[38/53] 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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/53] Compiling TermiNetwork EnvironmentType.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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 |
[40/53] Compiling TermiNetwork HttpMethod.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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 |
[41/53] Compiling TermiNetwork InterceptionAction.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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 |
[42/53] Compiling TermiNetwork MultipartFormDataStream.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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 |
[43/53] Compiling TermiNetwork Path.swift
/Users/admin/builder/spi-builder-workspace/Source/Enums/MultipartFormDataStream.swift:34:20: warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 |
33 | struct Constants {
34 | static var bufferSize = 1024 * 1024
| |- warning: static property 'bufferSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bufferSize' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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 |
[44/53] Compiling TermiNetwork Cache.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
[45/53] Compiling TermiNetwork CertificatePinningManager.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
[46/53] Compiling TermiNetwork Client.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
[47/53] Compiling TermiNetwork Configuration.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
[48/53] Compiling TermiNetwork EndpointConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Source/Cache.swift:26:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// Cache is used internally for various tasks such as in-memory caching image data.
23 | /// Primarily used in UIImageView|NSImageView|WKInterfaceImage and Image (SwiftUI) helpers.
24 | public final class Cache {
| `- note: class 'Cache' does not conform to the 'Sendable' protocol
25 | /// Singleton object.
26 | public static let shared = Cache()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Cache' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: 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:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
[49/53] Compiling TermiNetwork Request.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:25:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// The core class of TermiNetwork. It handles the request creation and its execution.
25 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
26 |
27 | // MARK: Internal properties
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 | }
[50/53] Compiling TermiNetwork Session.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:25:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// The core class of TermiNetwork. It handles the request creation and its execution.
25 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
26 |
27 | // MARK: Internal properties
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 | }
[51/53] Compiling TermiNetwork SessionTaskFactory.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:25:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// The core class of TermiNetwork. It handles the request creation and its execution.
25 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
26 |
27 | // MARK: Internal properties
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 | }
[52/53] Compiling TermiNetwork Image.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:25:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// The core class of TermiNetwork. It handles the request creation and its execution.
25 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
26 |
27 | // MARK: Internal properties
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 | }
[53/53] Compiling TermiNetwork Types.swift
/Users/admin/builder/spi-builder-workspace/Source/Queue.swift:49:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
47 |
48 | /// The default queue of TermiNetwork used in all Request objects.
49 | public static var shared = Queue()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
50 |
51 | // MARK: Private properties
/Users/admin/builder/spi-builder-workspace/Source/Environment.swift:43:23: warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
41 |
42 | /// The current global environment. Use this property to set your environment globally.
43 | public static var current: Environment!
| |- warning: static property 'current' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'current' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: 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
44 |
45 | /// Set a global environment for TermiNetwork.
/Users/admin/builder/spi-builder-workspace/Source/Request.swift:25:20: warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
23 |
24 | /// The core class of TermiNetwork. It handles the request creation and its execution.
25 | public final class Request: Operation {
| `- warning: class 'Request' must restate inherited '@unchecked Sendable' conformance
26 |
27 | // MARK: Internal properties
/Users/admin/builder/spi-builder-workspace/Source/Session.swift:24:14: warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
22 | /// This is a custom implementation of URLSessionDelegate, used to handle certification pinning
23 | internal final class Session<ResultType>: NSObject, URLSessionDataDelegate, URLSessionDownloadDelegate {
24 | weak var request: Request?
| `- warning: stored property 'request' of 'Sendable'-conforming generic class 'Session' is mutable; this is an error in the Swift 6 language mode
25 |
26 | private var receivedData: Data?
/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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType?) -> 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 '((TNImageType?) -> 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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 'TNImageType' (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 '((TNImageType) -> 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 '((TNImageType) -> 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 | }
Build complete! (22.31s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "TermiNetwork",
"name" : "TermiNetwork",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "TermiNetwork",
"targets" : [
"TermiNetwork"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5"
],
"targets" : [
{
"c99name" : "TermiNetwork",
"module_type" : "SwiftTarget",
"name" : "TermiNetwork",
"path" : "Source",
"product_memberships" : [
"TermiNetwork"
],
"sources" : [
"Cache.swift",
"CertificatePinningManager.swift",
"Client.swift",
"Configuration.swift",
"EndpointConfiguration.swift",
"Enums/EnvironmentType.swift",
"Enums/HttpMethod.swift",
"Enums/InterceptionAction.swift",
"Enums/MultipartFormDataStream.swift",
"Enums/Path.swift",
"Enums/PathType.swift",
"Enums/QueueFailureMode.swift",
"Enums/RequestBodyType.swift",
"Enums/RequestType.swift",
"Enums/TNError.swift",
"Enums/URLScheme.swift",
"Environment.swift",
"Extensions/Data+Extensions.swift",
"Extensions/Dictionary+Extensions.swift",
"Extensions/Operations/Decodable+Transformer.swift",
"Extensions/Operations/Request+DataOperations.swift",
"Extensions/Operations/Request+FileOperations.swift",
"Extensions/Operations/Request+FileOperationsAsync.swift",
"Extensions/Request+Async.swift",
"Extensions/Request+Interceptors.swift",
"Extensions/Request+Middleware.swift",
"Extensions/Request+Mock.swift",
"Extensions/Request+NSCopying.swift",
"Extensions/Request+ResponseHeaders.swift",
"Extensions/Request+ResponseTypes.swift",
"Extensions/UIImage+Extensions.swift",
"Extensions/UIImageView+Extensions.swift",
"Extensions/URLRequest+Extensions.swift",
"FileStreamer.swift",
"Helpers/MultipartFormDataHelpers.swift",
"Helpers/RequestBodyGenerators.swift",
"Helpers/RequestHelpers.swift",
"Log.swift",
"MultipartFormDataPartType.swift",
"Operation.swift",
"Protocols/EndpointProtocol.swift",
"Protocols/InterceptorProtocol.swift",
"Protocols/RequestMiddlewareProtocol.swift",
"Queue.swift",
"Reachability.swift",
"Request.swift",
"Session.swift",
"SessionTaskFactory.swift",
"SwiftUI/Image.swift",
"Types.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.