Build Information
Successful build of ObjectCoder with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
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/nearfri/ObjectCoder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nearfri/ObjectCoder
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7b9cf69 Update swift.yml
Cloned https://github.com/nearfri/ObjectCoder.git
Revision (git rev-parse @):
7b9cf696e939396a993d57455a774341b252d5d0
SUCCESS checkout https://github.com/nearfri/ObjectCoder.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/nearfri/ObjectCoder.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/18] Compiling ObjectCoder SingleValueObjectEncodingContanier.swift
[4/18] Compiling ObjectCoder UnkeyedObjectEncodingContanier.swift
[5/18] Compiling ObjectCoder ObjectEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum NilCodingStrategy {
| `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
4 | case null // NSNull
5 | case symbol(String) // symbol like "$null"
:
30 |
31 | extension NilCodingStrategy {
32 | public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
33 | public static let defaultNilSymbol: String = "$null"
34 | }
[6/18] Compiling ObjectCoder ReferencingEncoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum NilCodingStrategy {
| `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
4 | case null // NSNull
5 | case symbol(String) // symbol like "$null"
:
30 |
31 | extension NilCodingStrategy {
32 | public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
33 | public static let defaultNilSymbol: String = "$null"
34 | }
[7/18] Compiling ObjectCoder ObjectCoder+Combine.swift
[8/18] Compiling ObjectCoder KeyedObjectEncodingContainer.swift
[9/18] Compiling ObjectCoder ObjectContainer.swift
[10/18] Compiling ObjectCoder CodingStorage.swift
[11/18] Compiling ObjectCoder InitializableWithAny.swift
[12/18] Compiling ObjectCoder SingleValueObjectDecodingContainer.swift
[13/18] Compiling ObjectCoder UnkeyedObjectDecodingContainer.swift
[14/18] Compiling ObjectCoder NilCodingStrategy.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum NilCodingStrategy {
| `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
4 | case null // NSNull
5 | case symbol(String) // symbol like "$null"
:
30 |
31 | extension NilCodingStrategy {
32 | public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
33 | public static let defaultNilSymbol: String = "$null"
34 | }
[15/18] Emitting module ObjectCoder
/Users/admin/builder/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum NilCodingStrategy {
| `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
4 | case null // NSNull
5 | case symbol(String) // symbol like "$null"
:
30 |
31 | extension NilCodingStrategy {
32 | public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
33 | public static let defaultNilSymbol: String = "$null"
34 | }
[16/18] Compiling ObjectCoder KeyedObjectDecodingContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum NilCodingStrategy {
| `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
4 | case null // NSNull
5 | case symbol(String) // symbol like "$null"
:
30 |
31 | extension NilCodingStrategy {
32 | public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
33 | public static let defaultNilSymbol: String = "$null"
34 | }
[17/18] Compiling ObjectCoder ObjectDecoder.swift
/Users/admin/builder/spi-builder-workspace/Sources/ObjectCoder/NilCodingStrategy.swift:32:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum NilCodingStrategy {
| `- note: consider making enum 'NilCodingStrategy' conform to the 'Sendable' protocol
4 | case null // NSNull
5 | case symbol(String) // symbol like "$null"
:
30 |
31 | extension NilCodingStrategy {
32 | public static let `default`: NilCodingStrategy = .symbol(NilCodingStrategy.defaultNilSymbol)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NilCodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
33 | public static let defaultNilSymbol: String = "$null"
34 | }
[18/18] Compiling ObjectCoder Errors.swift
[19/19] Compiling ObjectCoder ObjectKey.swift
Build complete! (25.26s)
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting
[1/1247] Fetching cwlpreconditiontesting
[151/1686] Fetching cwlpreconditiontesting, cwlcatchexception
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.93s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting from cache (0.93s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting
Computed https://github.com/mattgallagher/CwlPreconditionTesting at 2.1.0 (0.68s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.1 (0.67s)
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting resolved at 2.1.0
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.1.1
Build complete.
{
"dependencies" : [
{
"identity" : "cwlpreconditiontesting",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mattgallagher/CwlPreconditionTesting"
}
],
"manifest_display_name" : "ObjectCoder",
"name" : "ObjectCoder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "ObjectCoder",
"targets" : [
"ObjectCoder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ObjectCoderTests",
"module_type" : "SwiftTarget",
"name" : "ObjectCoderTests",
"path" : "Tests/ObjectCoderTests",
"product_dependencies" : [
"CwlPreconditionTesting"
],
"sources" : [
"ObjectCoderTests.swift"
],
"target_dependencies" : [
"ObjectCoder"
],
"type" : "test"
},
{
"c99name" : "ObjectCoder",
"module_type" : "SwiftTarget",
"name" : "ObjectCoder",
"path" : "Sources/ObjectCoder",
"product_memberships" : [
"ObjectCoder"
],
"sources" : [
"CodingStorage.swift",
"Decoder/InitializableWithAny.swift",
"Decoder/KeyedObjectDecodingContainer.swift",
"Decoder/ObjectDecoder.swift",
"Decoder/SingleValueObjectDecodingContainer.swift",
"Decoder/UnkeyedObjectDecodingContainer.swift",
"Encoder/KeyedObjectEncodingContainer.swift",
"Encoder/ObjectContainer.swift",
"Encoder/ObjectEncoder.swift",
"Encoder/ReferencingEncoder.swift",
"Encoder/SingleValueObjectEncodingContanier.swift",
"Encoder/UnkeyedObjectEncodingContanier.swift",
"Errors.swift",
"NilCodingStrategy.swift",
"ObjectCoder+Combine.swift",
"ObjectKey.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.