Build Information
Successful build of RestEssentials, reference master (fb20a3
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 04:44:06 UTC.
Swift 6 data race errors: 3
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/sean7512/RestEssentials.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sean7512/RestEssentials
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at fb20a36 remove deprecated calls for network activity ui
Cloned https://github.com/sean7512/RestEssentials.git
Revision (git rev-parse @):
fb20a36735ac7fb3c8020c6f66b49095d4c708d2
SUCCESS checkout https://github.com/sean7512/RestEssentials.git at master
========================================
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": "restessentials",
"name": "RestEssentials",
"url": "https://github.com/sean7512/RestEssentials.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/RestEssentials",
"dependencies": [
]
}
]
}
Fetching https://github.com/sean7512/RestEssentials.git
[1/3306] Fetching restessentials
Fetched https://github.com/sean7512/RestEssentials.git from cache (3.47s)
Creating working copy for https://github.com/sean7512/RestEssentials.git
Working copy of https://github.com/sean7512/RestEssentials.git resolved at master (fb20a36)
warning: '.resolve-product-dependencies': dependency 'restessentials' 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/sean7512/RestEssentials.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/6] Compiling RestEssentials RestController.swift
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:52:14: warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
50 | ///
51 | /// **NOTE:** Ensure to configure `App Transport Security` appropriately.
52 | public class RestController : NSObject, URLSessionDelegate {
| `- warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
53 |
54 | fileprivate static let kDefaultRequestTimeout = 60 as TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:65:17: warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
63 |
64 | private let url: URL
65 | private var session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
66 |
67 | /// This generator will be called before every useage of this RestController
[4/6] Compiling RestEssentials JSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/JSON.swift:22:24: warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Represents any valid JSON type: another JSON object, an array, a string, a number, or a boolean.
20 | public struct JSON : CustomStringConvertible, ExpressibleByArrayLiteral, ExpressibleByDictionaryLiteral {
| `- note: consider making struct 'JSON' conform to the 'Sendable' protocol
21 |
22 | private static let kJSONNull = JSON(rawValue: Void())
| |- warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kJSONNull' 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
23 |
24 | private let raw: JSONValue
[5/6] Emitting module RestEssentials
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/JSON.swift:22:24: warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// Represents any valid JSON type: another JSON object, an array, a string, a number, or a boolean.
20 | public struct JSON : CustomStringConvertible, ExpressibleByArrayLiteral, ExpressibleByDictionaryLiteral {
| `- note: consider making struct 'JSON' conform to the 'Sendable' protocol
21 |
22 | private static let kJSONNull = JSON(rawValue: Void())
| |- warning: static property 'kJSONNull' is not concurrency-safe because non-'Sendable' type 'JSON' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kJSONNull' 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
23 |
24 | private let raw: JSONValue
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:52:14: warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
50 | ///
51 | /// **NOTE:** Ensure to configure `App Transport Security` appropriately.
52 | public class RestController : NSObject, URLSessionDelegate {
| `- warning: non-final class 'RestController' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
53 |
54 | fileprivate static let kDefaultRequestTimeout = 60 as TimeInterval
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/RestController.swift:65:17: warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
63 |
64 | private let url: URL
65 | private var session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming class 'RestController' is mutable; this is an error in the Swift 6 language mode
66 |
67 | /// This generator will be called before every useage of this RestController
[6/6] Compiling RestEssentials Deserializer.swift
Build complete! (8.73s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/RestEssentials/Info.plist
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "RestEssentials",
"name" : "RestEssentials",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "12.0"
}
],
"products" : [
{
"name" : "RestEssentials",
"targets" : [
"RestEssentials"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "RestEssentialsTests",
"module_type" : "SwiftTarget",
"name" : "RestEssentialsTests",
"path" : "Sources/RestEssentialsTests",
"sources" : [
"RestControllerTests.swift"
],
"target_dependencies" : [
"RestEssentials"
],
"type" : "test"
},
{
"c99name" : "RestEssentials",
"module_type" : "SwiftTarget",
"name" : "RestEssentials",
"path" : "Sources/RestEssentials",
"product_memberships" : [
"RestEssentials"
],
"sources" : [
"Deserializer.swift",
"JSON.swift",
"RestController.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.