This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of iONess with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/oss-homecredit-id/iONess.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/oss-homecredit-id/iONess
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b16ec63 Update issue templates
Cloned https://github.com/oss-homecredit-id/iONess.git
Revision (git rev-parse @):
b16ec6338d86e7cc35d018e1d98d2e345ebecf9b
SUCCESS checkout https://github.com/oss-homecredit-id/iONess.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/oss-homecredit-id/iONess.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/13] Compiling Ergo Thenable.swift
[5/13] Compiling Ergo Task+Extensions.swift
[6/13] Compiling Ergo Promise.swift
[7/13] Compiling Ergo ErgoError.swift
[8/13] Compiling Ergo NestedPromise.swift
[9/13] Compiling Ergo GlobalFunction.swift
[10/13] Compiling Ergo ClosurePromise.swift
[11/13] Emitting module Ergo
[12/13] Compiling Ergo ChainAnimator.swift
[13/13] Compiling Ergo DipatchQueue+Extensions.swift
[14/32] Compiling iONess NetworkSessionError.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Model/NetworkSessionError.swift:21:20: warning: class 'NetworkSessionError' must restate inherited '@unchecked Sendable' conformance
 19 |
 20 | /// Network Session Error Object
 21 | public final class NetworkSessionError: NSError, NetworkSessionErrorProtocol {
    |                    `- warning: class 'NetworkSessionError' must restate inherited '@unchecked Sendable' conformance
 22 |
 23 |     /// List of HTTP Error Code Error
[15/32] Compiling iONess RequestMessage.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Model/NetworkSessionError.swift:21:20: warning: class 'NetworkSessionError' must restate inherited '@unchecked Sendable' conformance
 19 |
 20 | /// Network Session Error Object
 21 | public final class NetworkSessionError: NSError, NetworkSessionErrorProtocol {
    |                    `- warning: class 'NetworkSessionError' must restate inherited '@unchecked Sendable' conformance
 22 |
 23 |     /// List of HTTP Error Code Error
[16/32] Compiling iONess LockRunner.swift
[17/32] Compiling iONess URLCompatible.swift
[18/34] Compiling iONess HTTPRequestMessage.swift
[19/34] Compiling iONess HTTPResponseMessage.swift
[20/34] Compiling iONess ResponseValidator.swift
[21/34] Compiling iONess RetryControl.swift
[22/34] Compiling iONess NetworkRequest.swift
[23/34] Compiling iONess NetworkResult.swift
[24/34] Compiling iONess RequestBodyEncoder.swift
[25/34] Compiling iONess ResponseDecoder.swift
[26/34] Emitting module iONess
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:55:23: warning: static property 'dropPreviousRequest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 53 |
 54 |     /// Default drop previous request
 55 |     public static var dropPreviousRequest: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'dropPreviousRequest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'dropPreviousRequest' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'dropPreviousRequest' 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
 56 |         duplicatedDownloadDecision: .dropAndRequestAgain,
 57 |         duplicatedUploadDecision: .dropAndRequestAgain,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:62:23: warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 60 |
 61 |     /// Default keep all completion and not creating a new request
 62 |     public static var keepAllCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'keepAllCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'keepAllCompletion' 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
 63 |         duplicatedDownloadDecision: .useBothCompletion,
 64 |         duplicatedUploadDecision: .useBothCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:69:23: warning: static property 'useFirstCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// Ignore latest completion
 69 |     public static var useFirstCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'useFirstCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useFirstCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useFirstCompletion' 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
 70 |         duplicatedDownloadDecision: .ignoreCurrentCompletion,
 71 |         duplicatedUploadDecision: .ignoreCurrentCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:76:23: warning: static property 'useLatestCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 74 |
 75 |     /// Use latest completion
 76 |     public static var useLatestCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'useLatestCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useLatestCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useLatestCompletion' 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
 77 |         duplicatedDownloadDecision: .useCurrentCompletion,
 78 |         duplicatedUploadDecision: .useCurrentCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/HTTPValidator.swift:32:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 30 | public final class StatusCodeValidator: HTTPValidator {
 31 |     /// Default validator, will validate is the status code between 200 and 300
 32 |     public static var `default`: StatusCodeValidator = .init(200..<300)
    |                       |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' 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
 33 |     let validRange: Range<Int>
 34 |
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager.swift:15:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | open class NetworkSessionManager {
14 |     /// default Network Session Manager
15 |     public static var `default`: NetworkSessionManager = .init()
   |                       |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
16 |
17 |     /// managed session
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Model/NetworkSessionError.swift:21:20: warning: class 'NetworkSessionError' must restate inherited '@unchecked Sendable' conformance
 19 |
 20 | /// Network Session Error Object
 21 | public final class NetworkSessionError: NSError, NetworkSessionErrorProtocol {
    |                    `- warning: class 'NetworkSessionError' must restate inherited '@unchecked Sendable' conformance
 22 |
 23 |     /// List of HTTP Error Code Error
[27/34] Compiling iONess NetworkSessionManager+Extensions.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:111:82: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
109 |         }
110 |         if let data = resumeData {
111 |             task = session.downloadTask(withResumeData: data, completionHandler: taskCompletion)
    |                                                                                  `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
112 |         } else {
113 |             task = session.downloadTask(with: request, completionHandler: taskCompletion)
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:113:75: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
111 |             task = session.downloadTask(withResumeData: data, completionHandler: taskCompletion)
112 |         } else {
113 |             task = session.downloadTask(with: request, completionHandler: taskCompletion)
    |                                                                           `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
114 |         }
115 |         assign(for: updatedRequest, task: task, completion: completion)
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:138:30: warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |         }
137 |         let task = session.uploadTask(with: updatedRequest, fromFile: fileURL) { [weak self] data, response, error in
138 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |                 completion(data, response, error)
140 |                 return
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager.swift:13:12: note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
11 |
12 | /// Network Session Manager
13 | open class NetworkSessionManager {
   |            `- note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
14 |     /// default Network Session Manager
15 |     public static var `default`: NetworkSessionManager = .init()
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:139:17: warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 |         let task = session.uploadTask(with: updatedRequest, fromFile: fileURL) { [weak self] data, response, error in
138 |             guard let self = self else {
139 |                 completion(data, response, error)
    |                 |- warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') 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 |                 return
141 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:139:17: warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
137 |         let task = session.uploadTask(with: updatedRequest, fromFile: fileURL) { [weak self] data, response, error in
138 |             guard let self = self else {
139 |                 completion(data, response, error)
    |                 `- warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
140 |                 return
141 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:168:30: warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 |         }
167 |         let task = session.dataTask(with: updatedRequest) { [weak self] data, response, error in
168 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 |                 completion(data, response, error)
170 |                 return
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager.swift:13:12: note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
11 |
12 | /// Network Session Manager
13 | open class NetworkSessionManager {
   |            `- note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
14 |     /// default Network Session Manager
15 |     public static var `default`: NetworkSessionManager = .init()
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:169:17: warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 |         let task = session.dataTask(with: updatedRequest) { [weak self] data, response, error in
168 |             guard let self = self else {
169 |                 completion(data, response, error)
    |                 |- warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') 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'
170 |                 return
171 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:169:17: warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
167 |         let task = session.dataTask(with: updatedRequest) { [weak self] data, response, error in
168 |             guard let self = self else {
169 |                 completion(data, response, error)
    |                 `- warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
170 |                 return
171 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager.swift:15:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | open class NetworkSessionManager {
14 |     /// default Network Session Manager
15 |     public static var `default`: NetworkSessionManager = .init()
   |                       |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
16 |
17 |     /// managed session
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:62:23: warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 60 |
 61 |     /// Default keep all completion and not creating a new request
 62 |     public static var keepAllCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'keepAllCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'keepAllCompletion' 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
 63 |         duplicatedDownloadDecision: .useBothCompletion,
 64 |         duplicatedUploadDecision: .useBothCompletion,
[28/34] Compiling iONess NetworkSessionManager.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:111:82: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
109 |         }
110 |         if let data = resumeData {
111 |             task = session.downloadTask(withResumeData: data, completionHandler: taskCompletion)
    |                                                                                  `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
112 |         } else {
113 |             task = session.downloadTask(with: request, completionHandler: taskCompletion)
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:113:75: warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
111 |             task = session.downloadTask(withResumeData: data, completionHandler: taskCompletion)
112 |         } else {
113 |             task = session.downloadTask(with: request, completionHandler: taskCompletion)
    |                                                                           `- warning: converting non-sendable function value to '@Sendable (URL?, URLResponse?, (any Error)?) -> Void' may introduce data races
114 |         }
115 |         assign(for: updatedRequest, task: task, completion: completion)
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:138:30: warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |         }
137 |         let task = session.uploadTask(with: updatedRequest, fromFile: fileURL) { [weak self] data, response, error in
138 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |                 completion(data, response, error)
140 |                 return
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager.swift:13:12: note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
11 |
12 | /// Network Session Manager
13 | open class NetworkSessionManager {
   |            `- note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
14 |     /// default Network Session Manager
15 |     public static var `default`: NetworkSessionManager = .init()
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:139:17: warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 |         let task = session.uploadTask(with: updatedRequest, fromFile: fileURL) { [weak self] data, response, error in
138 |             guard let self = self else {
139 |                 completion(data, response, error)
    |                 |- warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') 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 |                 return
141 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:139:17: warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
137 |         let task = session.uploadTask(with: updatedRequest, fromFile: fileURL) { [weak self] data, response, error in
138 |             guard let self = self else {
139 |                 completion(data, response, error)
    |                 `- warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
140 |                 return
141 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:168:30: warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 |         }
167 |         let task = session.dataTask(with: updatedRequest) { [weak self] data, response, error in
168 |             guard let self = self else {
    |                              `- warning: capture of 'self' with non-sendable type 'NetworkSessionManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 |                 completion(data, response, error)
170 |                 return
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager.swift:13:12: note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
11 |
12 | /// Network Session Manager
13 | open class NetworkSessionManager {
   |            `- note: class 'NetworkSessionManager' does not conform to the 'Sendable' protocol
14 |     /// default Network Session Manager
15 |     public static var `default`: NetworkSessionManager = .init()
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:169:17: warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 |         let task = session.dataTask(with: updatedRequest) { [weak self] data, response, error in
168 |             guard let self = self else {
169 |                 completion(data, response, error)
    |                 |- warning: capture of 'completion' with non-sendable type 'URLCompletion<Data>' (aka '(Optional<Data>, Optional<URLResponse>, Optional<any Error>) -> ()') 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'
170 |                 return
171 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager+Extensions.swift:169:17: warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
167 |         let task = session.dataTask(with: updatedRequest) { [weak self] data, response, error in
168 |             guard let self = self else {
169 |                 completion(data, response, error)
    |                 `- warning: reference to captured var 'completion' in concurrently-executing code; this is an error in the Swift 6 language mode
170 |                 return
171 |             }
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Manager/NetworkSessionManager.swift:15:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
13 | open class NetworkSessionManager {
14 |     /// default Network Session Manager
15 |     public static var `default`: NetworkSessionManager = .init()
   |                       |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'default' 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
16 |
17 |     /// managed session
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:62:23: warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 60 |
 61 |     /// Default keep all completion and not creating a new request
 62 |     public static var keepAllCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'keepAllCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'keepAllCompletion' 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
 63 |         duplicatedDownloadDecision: .useBothCompletion,
 64 |         duplicatedUploadDecision: .useBothCompletion,
[29/34] Compiling iONess DuplicatedHandler.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:55:23: warning: static property 'dropPreviousRequest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 53 |
 54 |     /// Default drop previous request
 55 |     public static var dropPreviousRequest: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'dropPreviousRequest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'dropPreviousRequest' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'dropPreviousRequest' 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
 56 |         duplicatedDownloadDecision: .dropAndRequestAgain,
 57 |         duplicatedUploadDecision: .dropAndRequestAgain,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:62:23: warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 60 |
 61 |     /// Default keep all completion and not creating a new request
 62 |     public static var keepAllCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'keepAllCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'keepAllCompletion' 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
 63 |         duplicatedDownloadDecision: .useBothCompletion,
 64 |         duplicatedUploadDecision: .useBothCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:69:23: warning: static property 'useFirstCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// Ignore latest completion
 69 |     public static var useFirstCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'useFirstCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useFirstCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useFirstCompletion' 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
 70 |         duplicatedDownloadDecision: .ignoreCurrentCompletion,
 71 |         duplicatedUploadDecision: .ignoreCurrentCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:76:23: warning: static property 'useLatestCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 74 |
 75 |     /// Use latest completion
 76 |     public static var useLatestCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'useLatestCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useLatestCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useLatestCompletion' 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
 77 |         duplicatedDownloadDecision: .useCurrentCompletion,
 78 |         duplicatedUploadDecision: .useCurrentCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/HTTPValidator.swift:32:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 30 | public final class StatusCodeValidator: HTTPValidator {
 31 |     /// Default validator, will validate is the status code between 200 and 300
 32 |     public static var `default`: StatusCodeValidator = .init(200..<300)
    |                       |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' 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
 33 |     let validRange: Range<Int>
 34 |
[30/34] Compiling iONess HTTPValidator.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:55:23: warning: static property 'dropPreviousRequest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 53 |
 54 |     /// Default drop previous request
 55 |     public static var dropPreviousRequest: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'dropPreviousRequest' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'dropPreviousRequest' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'dropPreviousRequest' 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
 56 |         duplicatedDownloadDecision: .dropAndRequestAgain,
 57 |         duplicatedUploadDecision: .dropAndRequestAgain,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:62:23: warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 60 |
 61 |     /// Default keep all completion and not creating a new request
 62 |     public static var keepAllCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'keepAllCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'keepAllCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'keepAllCompletion' 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
 63 |         duplicatedDownloadDecision: .useBothCompletion,
 64 |         duplicatedUploadDecision: .useBothCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:69:23: warning: static property 'useFirstCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// Ignore latest completion
 69 |     public static var useFirstCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'useFirstCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useFirstCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useFirstCompletion' 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
 70 |         duplicatedDownloadDecision: .ignoreCurrentCompletion,
 71 |         duplicatedUploadDecision: .ignoreCurrentCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/DuplicatedHandler.swift:76:23: warning: static property 'useLatestCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 74 |
 75 |     /// Use latest completion
 76 |     public static var useLatestCompletion: DefaultDuplicatedHandler = .init(
    |                       |- warning: static property 'useLatestCompletion' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'useLatestCompletion' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'useLatestCompletion' 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
 77 |         duplicatedDownloadDecision: .useCurrentCompletion,
 78 |         duplicatedUploadDecision: .useCurrentCompletion,
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Control/HTTPValidator.swift:32:23: warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 30 | public final class StatusCodeValidator: HTTPValidator {
 31 |     /// Default validator, will validate is the status code between 200 and 300
 32 |     public static var `default`: StatusCodeValidator = .init(200..<300)
    |                       |- warning: static property 'default' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'default' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'default' 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
 33 |     let validRange: Range<Int>
 34 |
[31/34] Compiling iONess RequestBuilder.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Request/RequestHandler.swift:121:74: warning: passing non-sendable parameter 'onRetry' to function expecting a @Sendable closure
108 |         error: Error,
109 |         response: URLResponse?,
110 |         onRetry: @escaping () -> Void,
    |         `- note: parameter 'onRetry' is implicitly non-sendable
111 |         onNoRetry: @escaping () -> Void) {
112 |         guard !error.causeByCancel,
    :
119 |             case .retryAfter(let delay):
120 |                 let dispatcher: DispatchQueue = OperationQueue.current?.underlyingQueue ?? .main
121 |                 dispatcher.asyncAfter(deadline: .now() + delay, execute: onRetry)
    |                                                                          `- warning: passing non-sendable parameter 'onRetry' to function expecting a @Sendable closure
122 |             case .retry:
123 |                 onRetry()
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Request/RequestHandler.swift:302:13: warning: capture of 'self' with non-sendable type 'DownloadRequestHandler?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 |
251 | /// Download Request Handler
252 | open class DownloadRequestHandler: RequestHandler, Resumable {
    |            `- note: class 'DownloadRequestHandler' does not conform to the 'Sendable' protocol
253 |     public typealias Result = DownloadResult
254 |     public typealias Task = URLSessionDownloadTask
    :
300 |     open func pause() {
301 |         task?.cancel { [weak self] data in
302 |             self?.dataInProgress = data
    |             `- warning: capture of 'self' with non-sendable type 'DownloadRequestHandler?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
[32/34] Compiling iONess RequestHandler.swift
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Request/RequestHandler.swift:121:74: warning: passing non-sendable parameter 'onRetry' to function expecting a @Sendable closure
108 |         error: Error,
109 |         response: URLResponse?,
110 |         onRetry: @escaping () -> Void,
    |         `- note: parameter 'onRetry' is implicitly non-sendable
111 |         onNoRetry: @escaping () -> Void) {
112 |         guard !error.causeByCancel,
    :
119 |             case .retryAfter(let delay):
120 |                 let dispatcher: DispatchQueue = OperationQueue.current?.underlyingQueue ?? .main
121 |                 dispatcher.asyncAfter(deadline: .now() + delay, execute: onRetry)
    |                                                                          `- warning: passing non-sendable parameter 'onRetry' to function expecting a @Sendable closure
122 |             case .retry:
123 |                 onRetry()
/Users/admin/builder/spi-builder-workspace/iONess/Classes/Request/RequestHandler.swift:302:13: warning: capture of 'self' with non-sendable type 'DownloadRequestHandler?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 |
251 | /// Download Request Handler
252 | open class DownloadRequestHandler: RequestHandler, Resumable {
    |            `- note: class 'DownloadRequestHandler' does not conform to the 'Sendable' protocol
253 |     public typealias Result = DownloadResult
254 |     public typealias Task = URLSessionDownloadTask
    :
300 |     open func pause() {
301 |         task?.cancel { [weak self] data in
302 |             self?.dataInProgress = data
    |             `- warning: capture of 'self' with non-sendable type 'DownloadRequestHandler?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
[33/34] Compiling iONess RequestPromise.swift
[34/34] Compiling iONess Resumable.swift
Build complete! (35.99s)
Fetching https://github.com/hainayanda/Ergo.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
[1/1247] Fetching cwlpreconditiontesting
[201/1686] Fetching cwlpreconditiontesting, cwlcatchexception
[206/2359] Fetching cwlpreconditiontesting, cwlcatchexception, ergo
[2280/16908] Fetching cwlpreconditiontesting, cwlcatchexception, ergo, quick
[16619/35548] Fetching cwlpreconditiontesting, cwlcatchexception, ergo, quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (1.57s)
[2919/20999] Fetching cwlpreconditiontesting, cwlcatchexception, ergo, nimble
Fetched https://github.com/Quick/Nimble.git from cache (2.55s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (2.55s)
Fetched https://github.com/hainayanda/Ergo.git from cache (2.55s)
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (2.55s)
Fetching https://github.com/nayanda1/Ergo.git
[1/673] Fetching ergo
Fetched https://github.com/nayanda1/Ergo.git from cache (0.98s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 9.2.1 (0.70s)
Computing version for https://github.com/Quick/Quick.git
Updating https://github.com/nayanda1/Ergo.git
Updated https://github.com/nayanda1/Ergo.git (0.49s)
Computed https://github.com/Quick/Quick.git at 4.0.0 (1.17s)
Computing version for https://github.com/nayanda1/Ergo.git
Computed https://github.com/nayanda1/Ergo.git at 1.3.0 (0.66s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.1.0 (0.68s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.0.0 (0.67s)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.1.0
Creating working copy for https://github.com/nayanda1/Ergo.git
Working copy of https://github.com/nayanda1/Ergo.git resolved at 1.3.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 9.2.1
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 4.0.0
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.0.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "ergo",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nayanda1/Ergo.git"
    },
    {
      "identity" : "quick",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Quick.git"
    },
    {
      "identity" : "nimble",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "9.2.1",
            "upper_bound" : "10.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Nimble.git"
    }
  ],
  "manifest_display_name" : "iONess",
  "name" : "iONess",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.10"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "iONess",
      "targets" : [
        "iONess"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "iONessTests",
      "module_type" : "SwiftTarget",
      "name" : "iONessTests",
      "path" : "Example/Tests",
      "product_dependencies" : [
        "Quick",
        "Nimble"
      ],
      "sources" : [
        "IntegratedTest.swift",
        "Mock.swift",
        "ResponseDecoderSpec.swift"
      ],
      "target_dependencies" : [
        "iONess"
      ],
      "type" : "test"
    },
    {
      "c99name" : "iONess",
      "module_type" : "SwiftTarget",
      "name" : "iONess",
      "path" : "iONess/Classes",
      "product_dependencies" : [
        "Ergo"
      ],
      "product_memberships" : [
        "iONess"
      ],
      "sources" : [
        "Common/LockRunner.swift",
        "Common/URLCompatible.swift",
        "Control/DuplicatedHandler.swift",
        "Control/HTTPValidator.swift",
        "Control/ResponseValidator.swift",
        "Control/RetryControl.swift",
        "EncoderAndDecoder/RequestBodyEncoder.swift",
        "EncoderAndDecoder/ResponseDecoder.swift",
        "Manager/NetworkSessionManager+Extensions.swift",
        "Manager/NetworkSessionManager.swift",
        "Model/HTTPRequestMessage.swift",
        "Model/HTTPResponseMessage.swift",
        "Model/NetworkRequest.swift",
        "Model/NetworkResult.swift",
        "Model/NetworkSessionError.swift",
        "Model/RequestMessage.swift",
        "Request/RequestBuilder.swift",
        "Request/RequestHandler.swift",
        "Request/RequestPromise.swift",
        "Request/Resumable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.