Build Information
Successful build of WriteFreely with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 3
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/writefreely/writefreely-swift.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/writefreely/writefreely-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4919bb1 Add collections-related test suite (#38)
Cloned https://github.com/writefreely/writefreely-swift.git
Revision (git rev-parse @):
4919bb1edcfceafe134fdac7e5c9d2e5b8a43cc8
SUCCESS checkout https://github.com/writefreely/writefreely-swift.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/writefreely/writefreely-swift.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/11] Compiling WriteFreely WFUser.swift
/Users/admin/builder/spi-builder-workspace/Sources/WriteFreely/WFUser.swift:59:16: warning: static property 'testUser' is not concurrency-safe because non-'Sendable' type 'WFUser' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct WFUser {
| `- note: consider making struct 'WFUser' conform to the 'Sendable' protocol
4 | public var token: String
5 | public var username: String?
:
57 |
58 | extension WFUser {
59 | static let testUser = WFUser(token: "00000000-0000-0000-0000-000000000000",
| |- warning: static property 'testUser' is not concurrency-safe because non-'Sendable' type 'WFUser' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testUser' 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
60 | username: "matt",
61 | email: "matt@example.com",
[4/11] Compiling WriteFreely WFPost.swift
/Users/admin/builder/spi-builder-workspace/Sources/WriteFreely/WFPost.swift:113:16: warning: static property 'testPost' is not concurrency-safe because non-'Sendable' type 'WFPost' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct WFPost {
| `- note: consider making struct 'WFPost' conform to the 'Sendable' protocol
4 | public var postId: String?
5 | public var slug: String?
:
111 |
112 | extension WFPost {
113 | static let testPost = WFPost(postId: nil,
| |- warning: static property 'testPost' is not concurrency-safe because non-'Sendable' type 'WFPost' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testPost' 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
114 | slug: nil,
115 | appearance: "norm",
[5/11] Compiling WriteFreely WFError.swift
[6/11] Compiling WriteFreely WFCollection.swift
/Users/admin/builder/spi-builder-workspace/Sources/WriteFreely/WFCollection.swift:70:16: warning: static property 'testCollection' is not concurrency-safe because non-'Sendable' type 'WFCollection' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct WFCollection {
| `- note: consider making struct 'WFCollection' conform to the 'Sendable' protocol
4 | public var alias: String?
5 | public var title: String
:
68 |
69 | extension WFCollection {
70 | static let testCollection = WFCollection(alias: "new-blog",
| |- warning: static property 'testCollection' is not concurrency-safe because non-'Sendable' type 'WFCollection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testCollection' 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
71 | title: "Test Blog",
72 | description: "",
[7/11] Compiling WriteFreely WFClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/WriteFreely/WFClient.swift:965:59: warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
961 | public func dataTask(
962 | with request: URLRequest,
963 | completionHandler: @escaping DataTaskResult
| `- note: parameter 'completionHandler' is implicitly non-sendable
964 | ) -> URLSessionDataTaskProtocol {
965 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
| `- warning: passing non-sendable parameter 'completionHandler' to function expecting a @Sendable closure
966 | }
967 | }
[8/11] Compiling WriteFreely WFClient+Templates.swift
[9/11] Emitting module WriteFreely
/Users/admin/builder/spi-builder-workspace/Sources/WriteFreely/WFCollection.swift:70:16: warning: static property 'testCollection' is not concurrency-safe because non-'Sendable' type 'WFCollection' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct WFCollection {
| `- note: consider making struct 'WFCollection' conform to the 'Sendable' protocol
4 | public var alias: String?
5 | public var title: String
:
68 |
69 | extension WFCollection {
70 | static let testCollection = WFCollection(alias: "new-blog",
| |- warning: static property 'testCollection' is not concurrency-safe because non-'Sendable' type 'WFCollection' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testCollection' 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
71 | title: "Test Blog",
72 | description: "",
/Users/admin/builder/spi-builder-workspace/Sources/WriteFreely/WFPost.swift:113:16: warning: static property 'testPost' is not concurrency-safe because non-'Sendable' type 'WFPost' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct WFPost {
| `- note: consider making struct 'WFPost' conform to the 'Sendable' protocol
4 | public var postId: String?
5 | public var slug: String?
:
111 |
112 | extension WFPost {
113 | static let testPost = WFPost(postId: nil,
| |- warning: static property 'testPost' is not concurrency-safe because non-'Sendable' type 'WFPost' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testPost' 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
114 | slug: nil,
115 | appearance: "norm",
/Users/admin/builder/spi-builder-workspace/Sources/WriteFreely/WFUser.swift:59:16: warning: static property 'testUser' is not concurrency-safe because non-'Sendable' type 'WFUser' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public struct WFUser {
| `- note: consider making struct 'WFUser' conform to the 'Sendable' protocol
4 | public var token: String
5 | public var username: String?
:
57 |
58 | extension WFUser {
59 | static let testUser = WFUser(token: "00000000-0000-0000-0000-000000000000",
| |- warning: static property 'testUser' is not concurrency-safe because non-'Sendable' type 'WFUser' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'testUser' 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
60 | username: "matt",
61 | email: "matt@example.com",
[10/11] Compiling WriteFreely JSONDecoder+Extension.swift
[11/11] Compiling WriteFreely HelperCodingKeys.swift
Build complete! (20.40s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "WriteFreely",
"name" : "WriteFreely",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.13"
},
{
"name" : "ios",
"version" : "11.0"
}
],
"products" : [
{
"name" : "WriteFreely",
"targets" : [
"WriteFreely"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WriteFreelyTests",
"module_type" : "SwiftTarget",
"name" : "WriteFreelyTests",
"path" : "Tests/WriteFreelyTests",
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WriteFreelyTests/Resources/error_collection_400.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WriteFreelyTests/Resources/test_collection.json",
"rule" : {
"process" : {
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/WriteFreelyTests/Resources/test_delete_collection.json",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"TestUtils.swift",
"WriteFreelyClientCollectionTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"WriteFreely"
],
"type" : "test"
},
{
"c99name" : "WriteFreely",
"module_type" : "SwiftTarget",
"name" : "WriteFreely",
"path" : "Sources/WriteFreely",
"product_memberships" : [
"WriteFreely"
],
"sources" : [
"Extensions/JSONDecoder+Extension.swift",
"HelperCodingKeys.swift",
"WFClient+Templates.swift",
"WFClient.swift",
"WFCollection.swift",
"WFError.swift",
"WFPost.swift",
"WFUser.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.