Build Information
Successful build of SwiftQuests, reference 0.4.0 (18d8aa
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 17:47:17 UTC.
Swift 6 data race errors: 1
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
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Ast3r10n/swiftquests.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Ast3r10n/swiftquests
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 18d8aa0 Merge pull request #35 from Ast3r10n/release/0.4.0
Cloned https://github.com/Ast3r10n/swiftquests.git
Revision (git rev-parse @):
18d8aa018ce6d3a91c55a78f116312018703c5ac
SUCCESS checkout https://github.com/Ast3r10n/swiftquests.git at 0.4.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftquests",
"name": "SwiftQuests",
"url": "https://github.com/Ast3r10n/swiftquests.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftquests",
"dependencies": [
]
}
]
}
Fetching https://github.com/Ast3r10n/swiftquests.git
[1/724] Fetching swiftquests
Fetched https://github.com/Ast3r10n/swiftquests.git from cache (0.85s)
Creating working copy for https://github.com/Ast3r10n/swiftquests.git
Working copy of https://github.com/Ast3r10n/swiftquests.git resolved at 0.4.0 (18d8aa0)
warning: '.resolve-product-dependencies': dependency 'swiftquests' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Ast3r10n/swiftquests.git
Running build ...
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling SwiftQuests RequestConfigurationHolder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15: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
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- 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
16 |
17 | /// The configuration assigned to the holder.
[4/7] Compiling SwiftQuests DefaultRequestConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15: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
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- 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
16 |
17 | /// The configuration assigned to the holder.
[5/7] Compiling SwiftQuests Request.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15: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
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- 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
16 |
17 | /// The configuration assigned to the holder.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/Request.swift:154:22: warning: capture of 'completionHandler' with non-sendable type '(Result<Response, any Error>) throws -> Void' (aka '(Result<(data: Optional<Data>, urlResponse: Optional<URLResponse>), any Error>) throws -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | let task = session.dataTask(with: urlRequest) { data, response, error in
153 | if let error = error {
154 | try? completionHandler(.failure(error))
| |- warning: capture of 'completionHandler' with non-sendable type '(Result<Response, any Error>) throws -> Void' (aka '(Result<(data: Optional<Data>, urlResponse: Optional<URLResponse>), any Error>) throws -> ()') 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'
155 | return
156 | }
[6/7] Compiling SwiftQuests NetworkError.swift
[7/7] Emitting module SwiftQuests
/Users/admin/builder/spi-builder-workspace/Sources/SwiftQuests/RequestConfigurationHolder.swift:15: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
13 | // MARK: - Public Properties
14 | /// The holder singleton instance.
15 | public static var shared = RequestConfigurationHolder()
| |- 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
16 |
17 | /// The configuration assigned to the holder.
Build complete! (6.73s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftQuests",
"name" : "SwiftQuests",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftQuests",
"targets" : [
"SwiftQuests"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftQuestsTests",
"module_type" : "SwiftTarget",
"name" : "SwiftQuestsTests",
"path" : "Tests/SwiftQuestsTests",
"sources" : [
"Mocks/URLProtocolMock.swift",
"Mocks/UserModel.swift",
"NetworkErrorTests.swift",
"RequestAsyncTests.swift",
"RequestConfigurationTests.swift",
"RequestTests.swift"
],
"target_dependencies" : [
"SwiftQuests"
],
"type" : "test"
},
{
"c99name" : "SwiftQuests",
"module_type" : "SwiftTarget",
"name" : "SwiftQuests",
"path" : "Sources/SwiftQuests",
"product_memberships" : [
"SwiftQuests"
],
"sources" : [
"DefaultRequestConfiguration.swift",
"NetworkError.swift",
"Request.swift",
"RequestConfigurationHolder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.