Build Information
Successful build of CoreKit, reference 1.0.5 (2273a7
), with Swift 6.0 for macOS (SPM) on 16 Sep 2024 20:20:35 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/electricbolt/corekit.git
Reference: 1.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/electricbolt/corekit
* tag 1.0.5 -> FETCH_HEAD
HEAD is now at 2273a76 Update to Xcode 15.4, Swift 5.10, iOS 13 minimum deployment target
Cloned https://github.com/electricbolt/corekit.git
Revision (git rev-parse @):
2273a76bd68fc68606d079e55c8c7299cfd611f4
SUCCESS checkout https://github.com/electricbolt/corekit.git at 1.0.5
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/electricbolt/corekit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/11] Compiling CoreKit DecimalNumberBuilder.swift
[4/11] Compiling CoreKit Money.swift
[5/11] Compiling CoreKit String+Subscript.swift
[6/11] Compiling CoreKit String+Utility.swift
[7/11] Compiling CoreKit Data+Codec.swift
/Users/admin/builder/spi-builder-workspace/CoreKit/Foundation/Data+Codec.swift:37:20: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
35 | struct HexEncodingOptions: OptionSet {
| `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
36 |
37 | static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
| |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'upperCase' 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
38 |
39 | public let rawValue: Int
[8/11] Compiling CoreKit Currency.swift
[9/11] Emitting module CoreKit
/Users/admin/builder/spi-builder-workspace/CoreKit/Foundation/Data+Codec.swift:37:20: warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
33 | }
34 |
35 | struct HexEncodingOptions: OptionSet {
| `- note: consider making struct 'HexEncodingOptions' conform to the 'Sendable' protocol
36 |
37 | static let upperCase = HexEncodingOptions(rawValue: 1 << 0)
| |- warning: static property 'upperCase' is not concurrency-safe because non-'Sendable' type 'Data.HexEncodingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'upperCase' 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
38 |
39 | public let rawValue: Int
/Users/admin/builder/spi-builder-workspace/CoreKit/Model/CurrencyManager.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CurrencyManager' may have shared mutable state; this is an error in the Swift 6 language mode
11 | */
12 |
13 | public class CurrencyManager {
| `- note: class 'CurrencyManager' does not conform to the 'Sendable' protocol
14 |
15 | /**
16 | The shared currency manager object for the process. This method always represents the same currency manager object.
17 | */
18 | public static let shared = CurrencyManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CurrencyManager' 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
19 |
20 | /**
/Users/admin/builder/spi-builder-workspace/CoreKit/Model/MoneyFormatter.swift:45:23: warning: static property 'defaultAccessibilityPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | currency. The defaultAccessibilityPrefix currency is NZD.
44 | */
45 | public static var defaultAccessibilityPrefix: Currency? = {
| |- warning: static property 'defaultAccessibilityPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultAccessibilityPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultAccessibilityPrefix' 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
46 | return CurrencyManager.shared.get(code: "NZD")
47 | }()
[10/11] Compiling CoreKit MoneyFormatter.swift
/Users/admin/builder/spi-builder-workspace/CoreKit/Model/MoneyFormatter.swift:45:23: warning: static property 'defaultAccessibilityPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 | currency. The defaultAccessibilityPrefix currency is NZD.
44 | */
45 | public static var defaultAccessibilityPrefix: Currency? = {
| |- warning: static property 'defaultAccessibilityPrefix' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultAccessibilityPrefix' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultAccessibilityPrefix' 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
46 | return CurrencyManager.shared.get(code: "NZD")
47 | }()
/Users/admin/builder/spi-builder-workspace/CoreKit/Model/CurrencyManager.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CurrencyManager' may have shared mutable state; this is an error in the Swift 6 language mode
11 | */
12 |
13 | public class CurrencyManager {
| `- note: class 'CurrencyManager' does not conform to the 'Sendable' protocol
14 |
15 | /**
16 | The shared currency manager object for the process. This method always represents the same currency manager object.
17 | */
18 | public static let shared = CurrencyManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CurrencyManager' 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
19 |
20 | /**
[11/11] Compiling CoreKit CurrencyManager.swift
/Users/admin/builder/spi-builder-workspace/CoreKit/Model/CurrencyManager.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CurrencyManager' may have shared mutable state; this is an error in the Swift 6 language mode
11 | */
12 |
13 | public class CurrencyManager {
| `- note: class 'CurrencyManager' does not conform to the 'Sendable' protocol
14 |
15 | /**
16 | The shared currency manager object for the process. This method always represents the same currency manager object.
17 | */
18 | public static let shared = CurrencyManager()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'CurrencyManager' 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
19 |
20 | /**
Build complete! (10.75s)
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/CoreKit/Info.plist
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CoreKit",
"name" : "CoreKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "CoreKit",
"targets" : [
"CoreKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CoreKitTests",
"module_type" : "SwiftTarget",
"name" : "CoreKitTests",
"path" : "CoreKitTests",
"sources" : [
"Foundation/tests/DataCodecTests.swift",
"Foundation/tests/StringSubscriptTests.swift",
"Foundation/tests/StringUtilitiesTests.swift",
"Model/internal/tests/DecimalNumberBuilderTests.swift",
"Model/tests/CurrencyManagerTests.swift",
"Model/tests/CurrencyTests.swift",
"Model/tests/MoneyFormatterAccessibilityTests.swift",
"Model/tests/MoneyFormatterFormattingTests.swift",
"Model/tests/MoneyFormatterParsingTests.swift",
"Model/tests/MoneyTests.swift"
],
"target_dependencies" : [
"CoreKit"
],
"type" : "test"
},
{
"c99name" : "CoreKit",
"module_type" : "SwiftTarget",
"name" : "CoreKit",
"path" : "CoreKit",
"product_memberships" : [
"CoreKit"
],
"sources" : [
"Foundation/Data+Codec.swift",
"Foundation/String+Subscript.swift",
"Foundation/String+Utility.swift",
"Model/Currency.swift",
"Model/CurrencyManager.swift",
"Model/Money.swift",
"Model/MoneyFormatter.swift",
"Model/internal/DecimalNumberBuilder.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.