Build Information
Successful build of UserDefaultsKey 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/danielctull/UserDefaultsKey.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/danielctull/UserDefaultsKey
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c52b82f Correctly handle storing URLs in UserDefaults
Cloned https://github.com/danielctull/UserDefaultsKey.git
Revision (git rev-parse @):
c52b82fcf31bbe41f1210e983c94988792ffc9c5
SUCCESS checkout https://github.com/danielctull/UserDefaultsKey.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/danielctull/UserDefaultsKey.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/8] Emitting module UserDefaultsKey
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsKey/PropertyWrapper-Dynamic.swift:67:26: warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
39 | @propertyWrapper
40 | public struct UserDefault<Value>: DynamicProperty {
| `- note: add '@preconcurrency' to the 'DynamicProperty' conformance to defer isolation checking to run time
41 |
42 | let defaults: UserDefaults
:
65 | public var projectedValue: Binding<Value> { $observable.value }
66 |
67 | public mutating func update() { _observable.update() }
| |- warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'update()' to make this instance method not isolated to the actor
68 | }
69 |
SwiftUI.DynamicProperty:6:19: note: 'update()' declared here
4 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5 | static var _propertyBehaviors: UInt32 { get }
6 | mutating func update()
| `- note: 'update()' declared here
7 | }
[4/8] Compiling UserDefaultsKey UserDefaults.swift
[5/8] Compiling UserDefaultsKey UserDefaultsKey.swift
[6/8] Compiling UserDefaultsKey PropertyWrapper-Static.swift
[7/8] Compiling UserDefaultsKey PropertyWrapper-Dynamic.swift
/Users/admin/builder/spi-builder-workspace/Sources/UserDefaultsKey/PropertyWrapper-Dynamic.swift:67:26: warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
38 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
39 | @propertyWrapper
40 | public struct UserDefault<Value>: DynamicProperty {
| `- note: add '@preconcurrency' to the 'DynamicProperty' conformance to defer isolation checking to run time
41 |
42 | let defaults: UserDefaults
:
65 | public var projectedValue: Binding<Value> { $observable.value }
66 |
67 | public mutating func update() { _observable.update() }
| |- warning: main actor-isolated instance method 'update()' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
| `- note: add 'nonisolated' to 'update()' to make this instance method not isolated to the actor
68 | }
69 |
SwiftUI.DynamicProperty:6:19: note: 'update()' declared here
4 | @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)
5 | static var _propertyBehaviors: UInt32 { get }
6 | mutating func update()
| `- note: 'update()' declared here
7 | }
[8/8] Compiling UserDefaultsKey KeyValueObservation.swift
Build complete! (31.98s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "UserDefaultsKey",
"name" : "UserDefaultsKey",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "UserDefaultsKey",
"targets" : [
"UserDefaultsKey"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UserDefaultsKeyTests",
"module_type" : "SwiftTarget",
"name" : "UserDefaultsKeyTests",
"path" : "Tests/UserDefaultsKeyTests",
"sources" : [
"KeyTests.swift",
"PropertyWrapperTests.swift",
"String+Random.swift",
"Unwrap.swift"
],
"target_dependencies" : [
"UserDefaultsKey"
],
"type" : "test"
},
{
"c99name" : "UserDefaultsKey",
"module_type" : "SwiftTarget",
"name" : "UserDefaultsKey",
"path" : "Sources/UserDefaultsKey",
"product_memberships" : [
"UserDefaultsKey"
],
"sources" : [
"KeyValueObservation.swift",
"PropertyWrapper-Dynamic.swift",
"PropertyWrapper-Static.swift",
"UserDefaults.swift",
"UserDefaultsKey.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.