Build Information
Successful build of UUSwiftNetworking, reference 1.4.2 (7ff8ed), with Swift 6.1 for macOS (SPM) on 13 Jan 2026 08:28:06 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SilverPineSoftware/UUSwiftNetworking.git
Reference: 1.4.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SilverPineSoftware/UUSwiftNetworking
* tag 1.4.2 -> FETCH_HEAD
HEAD is now at 7ff8eda Fix imports for mac targeting
Cloned https://github.com/SilverPineSoftware/UUSwiftNetworking.git
Revision (git rev-parse @):
7ff8eda9753bbe6e34de5ea65f7113ba96feaeeb
SUCCESS checkout https://github.com/SilverPineSoftware/UUSwiftNetworking.git at 1.4.2
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/SilverPineSoftware/UUSwiftNetworking.git
https://github.com/SilverPineSoftware/UUSwiftNetworking.git
{
"dependencies" : [
{
"identity" : "uuswiftcore",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SilverPineSoftware/UUSwiftCore.git"
},
{
"identity" : "uuswifttestcore",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SilverPineSoftware/UUSwiftTestCore.git"
}
],
"manifest_display_name" : "UUSwiftNetworking",
"name" : "UUSwiftNetworking",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "UUSwiftNetworking",
"targets" : [
"UUSwiftNetworking"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "UUSwiftNetworkingTests",
"module_type" : "SwiftTarget",
"name" : "UUSwiftNetworkingTests",
"path" : "Tests",
"product_dependencies" : [
"UUSwiftTestCore",
"UUSwiftCore"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TestJpeg_0001.JPG",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/UUNetworkingTestConfig.plist",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"UUHttpErrorHandlingTests.swift",
"UUHttpResponseHandlerTests.swift",
"UUHttpSessionInstanceTests.swift",
"UUHttpSessionStaticTests.swift",
"UUNetworkingTestCommon.swift",
"UUNetworkingTestConfig.swift",
"UURemoteDataConcurrent_100.swift",
"UURemoteDataConcurrent_1000.swift",
"UURemoteDataCustomApiTests.swift",
"UURemoteDataNegativeTests.swift",
"UURemoteDataTests.swift",
"UUShutterstockApi.swift"
],
"target_dependencies" : [
"UUSwiftNetworking"
],
"type" : "test"
},
{
"c99name" : "UUSwiftNetworking",
"module_type" : "SwiftTarget",
"name" : "UUSwiftNetworking",
"path" : "UUSwiftNetworking",
"product_dependencies" : [
"UUSwiftCore"
],
"product_memberships" : [
"UUSwiftNetworking"
],
"sources" : [
"UUEmptyResponse.swift",
"UUHttp.swift",
"UUHttpAuthorizationProvider.swift",
"UUHttpBody.swift",
"UUHttpDataParser.swift",
"UUHttpError.swift",
"UUHttpForm.swift",
"UUHttpRequest.swift",
"UUHttpResponse.swift",
"UUHttpResponseHandler.swift",
"UUHttpSession.swift",
"UURemoteApi.swift",
"UURemoteData.swift",
"UURemoteImage.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/4] Write sources
[1/4] Copying PrivacyInfo.xcprivacy
[1/4] Write sources
[3/4] Write swift-version-2F0A5646E1D333AE.txt
[5/33] Emitting module UUSwiftCore
[6/36] Compiling UUSwiftCore UUTypeAliases.swift
[7/36] Compiling UUSwiftCore UUURL.swift
[8/36] Compiling UUSwiftCore resource_bundle_accessor.swift
[9/36] Compiling UUSwiftCore UUJson.swift
[10/36] Compiling UUSwiftCore UUKeychain.swift
[11/36] Compiling UUSwiftCore UULocalization.swift
[12/36] Compiling UUSwiftCore UUDataCache.swift
[13/36] Compiling UUSwiftCore UUDate.swift
[14/36] Compiling UUSwiftCore UUDictionary.swift
[15/36] Compiling UUSwiftCore UUConsoleLogWriter.swift
[16/36] Compiling UUSwiftCore UULog.swift
[17/36] Compiling UUSwiftCore UULogLevel.swift
[18/36] Compiling UUSwiftCore UULogWriter.swift
[19/36] Compiling UUSwiftCore UUThread.swift
[20/36] Compiling UUSwiftCore UUTimeMeasurement.swift
[21/36] Compiling UUSwiftCore UUTimer.swift
[22/36] Compiling UUSwiftCore UULogger+Ext.swift
[23/36] Compiling UUSwiftCore UULogger.swift
[24/36] Compiling UUSwiftCore UUPrintLogWriter.swift
[25/36] Compiling UUSwiftCore UUNumber.swift
[26/36] Compiling UUSwiftCore UUObject.swift
[27/36] Compiling UUSwiftCore UUObjectFactory.swift
[28/36] Compiling UUSwiftCore UUArray.swift
[29/36] Compiling UUSwiftCore UUCollection.swift
[30/36] Compiling UUSwiftCore UUColor.swift
[31/36] Compiling UUSwiftCore UURandom.swift
[32/36] Compiling UUSwiftCore UUString.swift
[33/36] Compiling UUSwiftCore UUSwiftCore.swift
[34/36] Compiling UUSwiftCore UUComparable.swift
[35/36] Compiling UUSwiftCore UUCoreData.swift
[36/36] Compiling UUSwiftCore UUData.swift
[37/50] Compiling UUSwiftNetworking UURemoteData.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteData.swift:78:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteData' may have shared mutable state; this is an error in the Swift 6 language mode
37 | public typealias UUDataLoadedCompletionBlock = (Data?, Error?) -> Void
38 |
39 | public class UURemoteData: UURemoteDataProtocol
| `- note: class 'UURemoteData' does not conform to the 'Sendable' protocol
40 | {
41 | public struct Notifications
:
76 | let dataCache: UUDataCache
77 |
78 | static public let shared = UURemoteData(dataCache: UUDataCache.shared, remoteApi: UURemoteApi())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteData' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | required init(dataCache: UUDataCache, remoteApi: UURemoteApi)
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteData.swift:238:104: warning: sending 'metaData' risks causing data races; this is an error in the Swift 6 language mode
236 | DispatchQueue.main.async
237 | {
238 | NotificationCenter.default.post(name: Notifications.DataDownloaded, object: nil, userInfo: metaData)
| |- warning: sending 'metaData' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'metaData' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
239 | }
240 | }
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteData.swift:248:17: warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
246 | DispatchQueue.main.async
247 | {
248 | handler(data, error)
| |- warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'handler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
249 | }
250 | }
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteData.swift:198:112: warning: sending 'md' risks causing data races; this is an error in the Swift 6 language mode
196 | DispatchQueue.main.async
197 | {
198 | NotificationCenter.default.post(name: Notifications.DataDownloadFailed, object: nil, userInfo: md)
| |- warning: sending 'md' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'md' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
199 | }
200 |
:
205 | }
206 |
207 | self.removeDownload(forKey: key)
| `- note: access can happen concurrently
208 | _ = self.httpRequestLookups.removeValue(forKey: key)
209 | }
[38/51] Compiling UUSwiftNetworking UUHttpResponse.swift
[39/51] Compiling UUSwiftNetworking UURemoteApi.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteApi.swift:209:17: warning: capture of 'listener' with non-sendable type '(Bool, (any Error)?) -> ()' in a '@Sendable' closure
207 | DispatchQueue.global(qos: .default).async
208 | {
209 | listener(didAttempt, error)
| |- warning: capture of 'listener' with non-sendable type '(Bool, (any Error)?) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | }
211 | }
[40/51] Compiling UUSwiftNetworking UUHttpResponseHandler.swift
[41/51] Compiling UUSwiftNetworking UUHttpSession.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpSession.swift:24:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUHttpSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @objc
17 | public class UUHttpSession: NSObject
| `- note: class 'UUHttpSession' does not conform to the 'Sendable' protocol
18 | {
19 | private let urlSession: URLSession
:
22 | private var activeTasksLock = NSRecursiveLock()
23 |
24 | public static let shared = UUHttpSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUHttpSession' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static var defaultConfiguration: URLSessionConfiguration
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpSession.swift:81:22: warning: capture of 'request' with non-sendable type 'UUHttpRequest' in a '@Sendable' closure
79 | { (data : Data?, response: URLResponse?, error : Error?) in
80 |
81 | if let httpTask = request.httpTask
| `- warning: capture of 'request' with non-sendable type 'UUHttpRequest' in a '@Sendable' closure
82 | {
83 | self.removeActiveTask(httpTask)
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpRequest.swift:13:12: note: class 'UUHttpRequest' does not conform to the 'Sendable' protocol
11 | fileprivate let LOG_TAG = "UUHttpRequest"
12 |
13 | open class UUHttpRequest: NSObject
| `- note: class 'UUHttpRequest' does not conform to the 'Sendable' protocol
14 | {
15 | public static var defaultTimeout : TimeInterval = 60.0
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpSession.swift:83:17: warning: capture of 'self' with non-sendable type 'UUHttpSession' in a '@Sendable' closure
15 |
16 | @objc
17 | public class UUHttpSession: NSObject
| `- note: class 'UUHttpSession' does not conform to the 'Sendable' protocol
18 | {
19 | private let urlSession: URLSession
:
81 | if let httpTask = request.httpTask
82 | {
83 | self.removeActiveTask(httpTask)
| `- warning: capture of 'self' with non-sendable type 'UUHttpSession' in a '@Sendable' closure
84 | }
85 |
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpSession.swift:86:94: warning: capture of 'completion' with non-sendable type '(UUHttpResponse) -> ()' in a '@Sendable' closure
84 | }
85 |
86 | request.handleResponse(data: data, response: response, error: error, completion: completion)
| |- warning: capture of 'completion' with non-sendable type '(UUHttpResponse) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
87 | }
88 |
[42/51] Compiling UUSwiftNetworking UUHttpDataParser.swift
[43/51] Compiling UUSwiftNetworking UUHttpError.swift
[44/51] Emitting module UUSwiftNetworking
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpRequest.swift:15:20: warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | open class UUHttpRequest: NSObject
14 | {
15 | public static var defaultTimeout : TimeInterval = 60.0
| |- warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultTimeout' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static var defaultCachePolicy : URLRequest.CachePolicy = .useProtocolCachePolicy
17 |
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpRequest.swift:16:20: warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | {
15 | public static var defaultTimeout : TimeInterval = 60.0
16 | public static var defaultCachePolicy : URLRequest.CachePolicy = .useProtocolCachePolicy
| |- warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCachePolicy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCachePolicy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | public var url : String = ""
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpSession.swift:24:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUHttpSession' may have shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | @objc
17 | public class UUHttpSession: NSObject
| `- note: class 'UUHttpSession' does not conform to the 'Sendable' protocol
18 | {
19 | private let urlSession: URLSession
:
22 | private var activeTasksLock = NSRecursiveLock()
23 |
24 | public static let shared = UUHttpSession()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UUHttpSession' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 | public static var defaultConfiguration: URLSessionConfiguration
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteData.swift:78:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteData' may have shared mutable state; this is an error in the Swift 6 language mode
37 | public typealias UUDataLoadedCompletionBlock = (Data?, Error?) -> Void
38 |
39 | public class UURemoteData: UURemoteDataProtocol
| `- note: class 'UURemoteData' does not conform to the 'Sendable' protocol
40 | {
41 | public struct Notifications
:
76 | let dataCache: UUDataCache
77 |
78 | static public let shared = UURemoteData(dataCache: UUDataCache.shared, remoteApi: UURemoteApi())
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteData' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
79 |
80 | required init(dataCache: UUDataCache, remoteApi: UURemoteApi)
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteImage.swift:31:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteImage' may have shared mutable state; this is an error in the Swift 6 language mode
27 |
28 |
29 | public class UURemoteImage
| `- note: class 'UURemoteImage' does not conform to the 'Sendable' protocol
30 | {
31 | public static let shared = UURemoteImage(remoteData: UURemoteData.shared)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var useDiskCache = true
33 |
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteImage.swift:32:23: warning: static property 'useDiskCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | {
31 | public static let shared = UURemoteImage(remoteData: UURemoteData.shared)
32 | public static var useDiskCache = true
| |- warning: static property 'useDiskCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'useDiskCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'useDiskCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | private let remoteData: UURemoteData
[45/51] Compiling UUSwiftNetworking UUHttpAuthorizationProvider.swift
[46/51] Compiling UUSwiftNetworking UUHttpBody.swift
[47/51] Compiling UUSwiftNetworking UUHttpForm.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpRequest.swift:15:20: warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | open class UUHttpRequest: NSObject
14 | {
15 | public static var defaultTimeout : TimeInterval = 60.0
| |- warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultTimeout' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static var defaultCachePolicy : URLRequest.CachePolicy = .useProtocolCachePolicy
17 |
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpRequest.swift:16:20: warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | {
15 | public static var defaultTimeout : TimeInterval = 60.0
16 | public static var defaultCachePolicy : URLRequest.CachePolicy = .useProtocolCachePolicy
| |- warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCachePolicy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCachePolicy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | public var url : String = ""
[48/51] Compiling UUSwiftNetworking UUHttpRequest.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpRequest.swift:15:20: warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | open class UUHttpRequest: NSObject
14 | {
15 | public static var defaultTimeout : TimeInterval = 60.0
| |- warning: static property 'defaultTimeout' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultTimeout' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultTimeout' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static var defaultCachePolicy : URLRequest.CachePolicy = .useProtocolCachePolicy
17 |
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UUHttpRequest.swift:16:20: warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | {
15 | public static var defaultTimeout : TimeInterval = 60.0
16 | public static var defaultCachePolicy : URLRequest.CachePolicy = .useProtocolCachePolicy
| |- warning: static property 'defaultCachePolicy' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultCachePolicy' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultCachePolicy' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 | public var url : String = ""
[49/51] Compiling UUSwiftNetworking UUEmptyResponse.swift
[50/51] Compiling UUSwiftNetworking UUHttp.swift
[51/51] Compiling UUSwiftNetworking UURemoteImage.swift
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteImage.swift:31:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteImage' may have shared mutable state; this is an error in the Swift 6 language mode
27 |
28 |
29 | public class UURemoteImage
| `- note: class 'UURemoteImage' does not conform to the 'Sendable' protocol
30 | {
31 | public static let shared = UURemoteImage(remoteData: UURemoteData.shared)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'UURemoteImage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | public static var useDiskCache = true
33 |
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteImage.swift:32:23: warning: static property 'useDiskCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | {
31 | public static let shared = UURemoteImage(remoteData: UURemoteData.shared)
32 | public static var useDiskCache = true
| |- warning: static property 'useDiskCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'useDiskCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'useDiskCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | private let remoteData: UURemoteData
/Users/admin/builder/spi-builder-workspace/UUSwiftNetworking/UURemoteImage.swift:146:105: warning: sending 'metaData' risks causing data races; this is an error in the Swift 6 language mode
144 | DispatchQueue.main.async
145 | {
146 | NotificationCenter.default.post(name: Notifications.ImageDownloaded, object: nil, userInfo: metaData)
| |- warning: sending 'metaData' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'metaData' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
147 | }
148 | }
Build complete! (12.39s)
Fetching https://github.com/SilverPineSoftware/UUSwiftTestCore.git
Fetching https://github.com/SilverPineSoftware/UUSwiftCore.git
[1/554] Fetching uuswiftcore
[107/624] Fetching uuswiftcore, uuswifttestcore
Fetched https://github.com/SilverPineSoftware/UUSwiftCore.git from cache (0.79s)
Fetched https://github.com/SilverPineSoftware/UUSwiftTestCore.git from cache (0.79s)
Computing version for https://github.com/SilverPineSoftware/UUSwiftTestCore.git
Computed https://github.com/SilverPineSoftware/UUSwiftTestCore.git at 0.0.4 (1.38s)
Computing version for https://github.com/SilverPineSoftware/UUSwiftCore.git
Computed https://github.com/SilverPineSoftware/UUSwiftCore.git at 1.3.1 (0.55s)
Creating working copy for https://github.com/SilverPineSoftware/UUSwiftTestCore.git
Working copy of https://github.com/SilverPineSoftware/UUSwiftTestCore.git resolved at 0.0.4
Creating working copy for https://github.com/SilverPineSoftware/UUSwiftCore.git
Working copy of https://github.com/SilverPineSoftware/UUSwiftCore.git resolved at 1.3.1
Build complete.
{
"dependencies" : [
{
"identity" : "uuswiftcore",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SilverPineSoftware/UUSwiftCore.git"
},
{
"identity" : "uuswifttestcore",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.4",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SilverPineSoftware/UUSwiftTestCore.git"
}
],
"manifest_display_name" : "UUSwiftNetworking",
"name" : "UUSwiftNetworking",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "UUSwiftNetworking",
"targets" : [
"UUSwiftNetworking"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4.2",
"5"
],
"targets" : [
{
"c99name" : "UUSwiftNetworkingTests",
"module_type" : "SwiftTarget",
"name" : "UUSwiftNetworkingTests",
"path" : "Tests",
"product_dependencies" : [
"UUSwiftTestCore",
"UUSwiftCore"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/TestJpeg_0001.JPG",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/UUNetworkingTestConfig.plist",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"UUHttpErrorHandlingTests.swift",
"UUHttpResponseHandlerTests.swift",
"UUHttpSessionInstanceTests.swift",
"UUHttpSessionStaticTests.swift",
"UUNetworkingTestCommon.swift",
"UUNetworkingTestConfig.swift",
"UURemoteDataConcurrent_100.swift",
"UURemoteDataConcurrent_1000.swift",
"UURemoteDataCustomApiTests.swift",
"UURemoteDataNegativeTests.swift",
"UURemoteDataTests.swift",
"UUShutterstockApi.swift"
],
"target_dependencies" : [
"UUSwiftNetworking"
],
"type" : "test"
},
{
"c99name" : "UUSwiftNetworking",
"module_type" : "SwiftTarget",
"name" : "UUSwiftNetworking",
"path" : "UUSwiftNetworking",
"product_dependencies" : [
"UUSwiftCore"
],
"product_memberships" : [
"UUSwiftNetworking"
],
"sources" : [
"UUEmptyResponse.swift",
"UUHttp.swift",
"UUHttpAuthorizationProvider.swift",
"UUHttpBody.swift",
"UUHttpDataParser.swift",
"UUHttpError.swift",
"UUHttpForm.swift",
"UUHttpRequest.swift",
"UUHttpResponse.swift",
"UUHttpResponseHandler.swift",
"UUHttpSession.swift",
"UURemoteApi.swift",
"UURemoteData.swift",
"UURemoteImage.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.