Build Information
Successful build of ComposableKeychain with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 2
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/binaryscraping/swift-composable-keychain.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/binaryscraping/swift-composable-keychain
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c8c3865 Fix docs
Cloned https://github.com/binaryscraping/swift-composable-keychain.git
Revision (git rev-parse @):
c8c3865e2b883fa0d361a7842e1ff5196f8a9661
SUCCESS checkout https://github.com/binaryscraping/swift-composable-keychain.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/binaryscraping/swift-composable-keychain.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/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/8] Emitting module XCTestDynamicOverlay
[6/8] Compiling XCTestDynamicOverlay XCTFail.swift
[7/8] Emitting module KeychainAccess
[8/8] Compiling KeychainAccess Keychain.swift
[9/12] Compiling ComposableKeychain Interface.swift
[10/12] Compiling ComposableKeychain Live.swift
[11/12] Emitting module ComposableKeychain
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Mocks.swift:4:21: warning: static property 'noop' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
2 | /// A KeychainClient implementation that does nothing when called.
3 | /// Can be used on Xcode Previews.
4 | public static let noop = KeychainClient(
| |- warning: static property 'noop' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noop' 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
5 | getString: { _ in nil },
6 | getData: { _ in nil },
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Interface.swift:3:15: note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct KeychainClient {
| `- note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
4 | public var getString: (_ key: Key) throws -> String?
5 | public var getData: (_ key: Key) throws -> Data?
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Mocks.swift:21:23: warning: static property 'failing' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// A KeychainClient implementation that fails when called.
20 | /// Used for testing purposes and available only in DEBUG builds.
21 | public static let failing = KeychainClient(
| |- warning: static property 'failing' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'failing' 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 | getString: { key in
23 | XCTFail("\(Self.self).getString(\(key)) is unimplemented")
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Interface.swift:3:15: note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct KeychainClient {
| `- note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
4 | public var getString: (_ key: Key) throws -> String?
5 | public var getData: (_ key: Key) throws -> Data?
[12/12] Compiling ComposableKeychain Mocks.swift
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Mocks.swift:4:21: warning: static property 'noop' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
2 | /// A KeychainClient implementation that does nothing when called.
3 | /// Can be used on Xcode Previews.
4 | public static let noop = KeychainClient(
| |- warning: static property 'noop' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noop' 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
5 | getString: { _ in nil },
6 | getData: { _ in nil },
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Interface.swift:3:15: note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct KeychainClient {
| `- note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
4 | public var getString: (_ key: Key) throws -> String?
5 | public var getData: (_ key: Key) throws -> Data?
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Mocks.swift:21:23: warning: static property 'failing' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
19 | /// A KeychainClient implementation that fails when called.
20 | /// Used for testing purposes and available only in DEBUG builds.
21 | public static let failing = KeychainClient(
| |- warning: static property 'failing' is not concurrency-safe because non-'Sendable' type 'KeychainClient' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'failing' 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 | getString: { key in
23 | XCTFail("\(Self.self).getString(\(key)) is unimplemented")
/Users/admin/builder/spi-builder-workspace/Sources/ComposableKeychain/Interface.swift:3:15: note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public struct KeychainClient {
| `- note: consider making struct 'KeychainClient' conform to the 'Sendable' protocol
4 | public var getString: (_ key: Key) throws -> String?
5 | public var getData: (_ key: Key) throws -> Data?
Build complete! (23.12s)
Fetching https://github.com/kishikawakatsumi/KeychainAccess
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/4386] Fetching keychainaccess
[221/6742] Fetching keychainaccess, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.44s)
Fetched https://github.com/kishikawakatsumi/KeychainAccess from cache (1.44s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.2.1 (0.70s)
Computing version for https://github.com/kishikawakatsumi/KeychainAccess
Computed https://github.com/kishikawakatsumi/KeychainAccess at 4.2.2 (0.72s)
Creating working copy for https://github.com/kishikawakatsumi/KeychainAccess
Working copy of https://github.com/kishikawakatsumi/KeychainAccess resolved at 4.2.2
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.2.1
Build complete.
{
"dependencies" : [
{
"identity" : "keychainaccess",
"requirement" : {
"range" : [
{
"lower_bound" : "4.2.2",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kishikawakatsumi/KeychainAccess"
},
{
"identity" : "xctest-dynamic-overlay",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/xctest-dynamic-overlay"
}
],
"manifest_display_name" : "ComposableKeychain",
"name" : "ComposableKeychain",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "ComposableKeychain",
"targets" : [
"ComposableKeychain"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ComposableKeychainTests",
"module_type" : "SwiftTarget",
"name" : "ComposableKeychainTests",
"path" : "Tests/ComposableKeychainTests",
"sources" : [
"ComposableKeychainTests.swift"
],
"target_dependencies" : [
"ComposableKeychain"
],
"type" : "test"
},
{
"c99name" : "ComposableKeychain",
"module_type" : "SwiftTarget",
"name" : "ComposableKeychain",
"path" : "Sources/ComposableKeychain",
"product_dependencies" : [
"KeychainAccess",
"XCTestDynamicOverlay"
],
"product_memberships" : [
"ComposableKeychain"
],
"sources" : [
"Interface.swift",
"Live.swift",
"Mocks.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.