Build Information
Successful build of OWOneCall, reference 1.3.3 (1ee37b
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 02:29:20 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/workingDog/OWOneCall.git
Reference: 1.3.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/workingDog/OWOneCall
* tag 1.3.3 -> FETCH_HEAD
HEAD is now at 1ee37b6 update for OneCall 3.0
Cloned https://github.com/workingDog/OWOneCall.git
Revision (git rev-parse @):
1ee37b6478e71b24c41058b325da06ac45a74056
SUCCESS checkout https://github.com/workingDog/OWOneCall.git at 1.3.3
========================================
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": "owonecall",
"name": "OWOneCall",
"url": "https://github.com/workingDog/OWOneCall.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OWOneCall",
"dependencies": [
]
}
]
}
Fetching https://github.com/workingDog/OWOneCall.git
[1/526] Fetching owonecall
Fetched https://github.com/workingDog/OWOneCall.git from cache (1.04s)
Creating working copy for https://github.com/workingDog/OWOneCall.git
Working copy of https://github.com/workingDog/OWOneCall.git resolved at 1.3.3 (1ee37b6)
warning: '.resolve-product-dependencies': dependency 'owonecall' 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/workingDog/OWOneCall.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 OWOneCall OWResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWResponse.swift:150:23: warning: static property 'defaultIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
148 |
149 | /// the SFSymbol name to use as the default icon name
150 | public static var defaultIcon = "questionmark"
| |- warning: static property 'defaultIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultIcon' 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
151 |
152 | enum CodingKeys: String, CodingKey {
[4/7] Compiling OWOneCall OWOptions.swift
[5/7] Compiling OWOneCall OWClient.swift
[6/7] Emitting module OWOneCall
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWResponse.swift:150:23: warning: static property 'defaultIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
148 |
149 | /// the SFSymbol name to use as the default icon name
150 | public static var defaultIcon = "questionmark"
| |- warning: static property 'defaultIcon' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultIcon' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultIcon' 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
151 |
152 | enum CodingKeys: String, CodingKey {
[7/7] Compiling OWOneCall OWProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:47:17: warning: capture of 'completion' with non-sendable type '(OWResponse?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
46 | DispatchQueue.main.async {
47 | completion(results)
| |- warning: capture of 'completion' with non-sendable type '(OWResponse?) -> 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'
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:47:28: warning: capture of 'results' with non-sendable type 'OWResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
46 | DispatchQueue.main.async {
47 | completion(results)
| `- warning: capture of 'results' with non-sendable type 'OWResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWResponse.swift:11:15: note: consider making struct 'OWResponse' conform to the 'Sendable' protocol
9 |
10 | // MARK: - OWResponse
11 | public struct OWResponse: Identifiable, Codable {
| `- note: consider making struct 'OWResponse' conform to the 'Sendable' protocol
12 | public let id = UUID()
13 |
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:44:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
42 | /// get the weather at the given location with the given options, with completion handler
43 | open func getWeather(lat: Double, lon: Double, options: OWOptionsProtocol, completion: @escaping (OWResponse?) -> Void) {
44 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
45 | let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
| `- note: closure captures 'self' which is accessible to code in the current task
46 | DispatchQueue.main.async {
47 | completion(results)
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:47:17: warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
45 | let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
46 | DispatchQueue.main.async {
47 | completion(results)
| |- warning: sending 'completion' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'completion' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/OWOneCall/OWProvider.swift:47:28: warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
45 | let results: OWResponse? = await getWeather(lat: lat, lon: lon, options: options)
46 | DispatchQueue.main.async {
47 | completion(results)
| |- warning: sending 'results' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'results' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
48 | }
49 | }
Build complete! (13.94s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "OWOneCall",
"name" : "OWOneCall",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "OWOneCall",
"targets" : [
"OWOneCall"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OWOneCallTests",
"module_type" : "SwiftTarget",
"name" : "OWOneCallTests",
"path" : "Tests/OWOneCallTests",
"sources" : [
"OWOneCallTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"OWOneCall"
],
"type" : "test"
},
{
"c99name" : "OWOneCall",
"module_type" : "SwiftTarget",
"name" : "OWOneCall",
"path" : "Sources/OWOneCall",
"product_memberships" : [
"OWOneCall"
],
"sources" : [
"OWClient.swift",
"OWOptions.swift",
"OWProvider.swift",
"OWResponse.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.