Build Information
Successful build of Engine with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
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/blackjacx/engine.git
Reference: develop
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/blackjacx/engine
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 674e984 Update Badges
Cloned https://github.com/blackjacx/engine.git
Revision (git rev-parse @):
674e9847c8cbbac7ba8b2a47d28853fb69d3073b
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/blackjacx/engine.git at develop
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/blackjacx/engine.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/23] Compiling Engine Network.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Network.swift:20:23: warning: static property 'verbosityLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 | public struct Network {
19 |
20 | public static var verbosityLevel = 0
| |- warning: static property 'verbosityLevel' 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 'verbosityLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbosityLevel' 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
21 | public static let shared = Network()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Network.swift:21:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Network' may have shared mutable state; this is an error in the Swift 6 language mode
16 | public typealias RequestResult<T: Decodable> = Result<T, NetworkError>
17 |
18 | public struct Network {
| `- note: consider making struct 'Network' conform to the 'Sendable' protocol
19 |
20 | public static var verbosityLevel = 0
21 | public static let shared = Network()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Network' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | private static let session = URLSession.shared
[4/23] Compiling Engine NetworkError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Network.swift:20:23: warning: static property 'verbosityLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 | public struct Network {
19 |
20 | public static var verbosityLevel = 0
| |- warning: static property 'verbosityLevel' 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 'verbosityLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbosityLevel' 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
21 | public static let shared = Network()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Network.swift:21:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Network' may have shared mutable state; this is an error in the Swift 6 language mode
16 | public typealias RequestResult<T: Decodable> = Result<T, NetworkError>
17 |
18 | public struct Network {
| `- note: consider making struct 'Network' conform to the 'Sendable' protocol
19 |
20 | public static var verbosityLevel = 0
21 | public static let shared = Network()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Network' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | private static let session = URLSession.shared
[5/25] Compiling Engine URL+Extensions.swift
[6/25] Compiling Engine URLRequest+Extensions.swift
[7/25] Compiling Engine ProcessInfo+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Foundation/String+Random.swift:65:61: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
63 |
64 | let start = workingBase.startIndex
65 | let end = workingBase.index(start, offsetBy: String.IndexDistance(Swift.max(length, 0)))
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
66 | return String(workingBase[start..<end])
67 | }
[8/25] Compiling Engine String+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Foundation/String+Random.swift:65:61: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
63 |
64 | let start = workingBase.startIndex
65 | let end = workingBase.index(start, offsetBy: String.IndexDistance(Swift.max(length, 0)))
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
66 | return String(workingBase[start..<end])
67 | }
[9/25] Compiling Engine String+Random.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Foundation/String+Random.swift:65:61: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
63 |
64 | let start = workingBase.startIndex
65 | let end = workingBase.index(start, offsetBy: String.IndexDistance(Swift.max(length, 0)))
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
66 | return String(workingBase[start..<end])
67 | }
[10/25] Emitting module Engine
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Json.swift:12:23: warning: static property 'encoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public struct Json {
11 |
12 | public static var encoder: JSONEncoder = {
| |- warning: static property 'encoder' 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 'encoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'encoder' 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
13 | let encoder = JSONEncoder()
14 | encoder.dateEncodingStrategy = .iso8601
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Json.swift:18:23: warning: static property 'decoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }()
17 |
18 | public static var decoder: JSONDecoder = {
| |- warning: static property 'decoder' 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 'decoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'decoder' 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
19 | let decoder = JSONDecoder()
20 | decoder.dateDecodingStrategy = .iso8601
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Network.swift:20:23: warning: static property 'verbosityLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
18 | public struct Network {
19 |
20 | public static var verbosityLevel = 0
| |- warning: static property 'verbosityLevel' 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 'verbosityLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'verbosityLevel' 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
21 | public static let shared = Network()
22 |
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Network.swift:21:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Network' may have shared mutable state; this is an error in the Swift 6 language mode
16 | public typealias RequestResult<T: Decodable> = Result<T, NetworkError>
17 |
18 | public struct Network {
| `- note: consider making struct 'Network' conform to the 'Sendable' protocol
19 |
20 | public static var verbosityLevel = 0
21 | public static let shared = Network()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Network' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | private static let session = URLSession.shared
[11/25] Compiling Engine Json.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Json.swift:12:23: warning: static property 'encoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public struct Json {
11 |
12 | public static var encoder: JSONEncoder = {
| |- warning: static property 'encoder' 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 'encoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'encoder' 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
13 | let encoder = JSONEncoder()
14 | encoder.dateEncodingStrategy = .iso8601
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Json.swift:18:23: warning: static property 'decoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }()
17 |
18 | public static var decoder: JSONDecoder = {
| |- warning: static property 'decoder' 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 'decoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'decoder' 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
19 | let decoder = JSONDecoder()
20 | decoder.dateDecodingStrategy = .iso8601
[12/25] Compiling Engine LoggableError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Json.swift:12:23: warning: static property 'encoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
10 | public struct Json {
11 |
12 | public static var encoder: JSONEncoder = {
| |- warning: static property 'encoder' 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 'encoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'encoder' 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
13 | let encoder = JSONEncoder()
14 | encoder.dateEncodingStrategy = .iso8601
/Users/admin/builder/spi-builder-workspace/Sources/Engine/Networking/Json.swift:18:23: warning: static property 'decoder' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
16 | }()
17 |
18 | public static var decoder: JSONDecoder = {
| |- warning: static property 'decoder' 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 'decoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'decoder' 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
19 | let decoder = JSONDecoder()
20 | decoder.dateDecodingStrategy = .iso8601
[13/25] Compiling Engine Engine.swift
[14/25] Compiling Engine Bundle+Extensions.swift
[15/25] Compiling Engine FileManager+Extensions.swift
[16/25] Compiling Engine Service.swift
[17/25] Compiling Engine DataWrapper.swift
[18/25] Compiling Engine UserDefaults+PropertyWrapper.swift
[19/25] Compiling Engine UIColor+Extensions.swift
[20/25] Compiling Engine Endpoint.swift
[21/25] Compiling Engine HTTPMethod.swift
[22/25] Compiling Engine EmptyResponse.swift
[23/25] Compiling Engine Clamping.swift
[24/25] Compiling Engine UIView+Extensions.swift
[25/25] Compiling Engine UIViewController+Extensions.swift
Build complete! (22.45s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Engine",
"name" : "Engine",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "Engine",
"targets" : [
"Engine"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "EngineTests",
"module_type" : "SwiftTarget",
"name" : "EngineTests",
"path" : "Tests/EngineTests",
"sources" : [
"Foundation/URLTests.swift",
"PropertyWrapper/ClampingTests.swift",
"UIKit/UIColorTests.swift"
],
"target_dependencies" : [
"Engine"
],
"type" : "test"
},
{
"c99name" : "Engine",
"module_type" : "SwiftTarget",
"name" : "Engine",
"path" : "Sources/Engine",
"product_memberships" : [
"Engine"
],
"sources" : [
"Engine.swift",
"Foundation/Bundle+Extensions.swift",
"Foundation/FileManager+Extensions.swift",
"Foundation/ProcessInfo+Extensions.swift",
"Foundation/String+Extensions.swift",
"Foundation/String+Random.swift",
"Foundation/URL+Extensions.swift",
"Foundation/URLRequest+Extensions.swift",
"Networking/Endpoint.swift",
"Networking/HTTPMethod.swift",
"Networking/Json.swift",
"Networking/LoggableError.swift",
"Networking/Network.swift",
"Networking/NetworkError.swift",
"Networking/Service.swift",
"Networking/models/DataWrapper.swift",
"Networking/models/EmptyResponse.swift",
"PropertyWrapper/Clamping.swift",
"PropertyWrapper/UserDefaults+PropertyWrapper.swift",
"UIKit/UIColor+Extensions.swift",
"UIKit/UIView+Extensions.swift",
"UIKit/UIViewController+Extensions.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.