Build Information
Successful build of DefaultsKit, reference 0.3.2 (acc227
), with Swift 6.0 for macOS (SPM) on 17 Nov 2024 19:08:57 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.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.57.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nmdias/DefaultsKit.git
Reference: 0.3.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nmdias/DefaultsKit
* tag 0.3.2 -> FETCH_HEAD
HEAD is now at acc2272 Update testThreadUnsafe
Cloned https://github.com/nmdias/DefaultsKit.git
Revision (git rev-parse @):
acc22726ef063d3092e5b594ecbb3a8232e631bd
SUCCESS checkout https://github.com/nmdias/DefaultsKit.git at 0.3.2
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "defaultskit",
"name": "DefaultsKit",
"url": "https://github.com/nmdias/DefaultsKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DefaultsKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/nmdias/DefaultsKit.git
[1/488] Fetching defaultskit
Fetched https://github.com/nmdias/DefaultsKit.git from cache (0.79s)
Creating working copy for https://github.com/nmdias/DefaultsKit.git
Working copy of https://github.com/nmdias/DefaultsKit.git resolved at 0.3.2 (acc2272)
warning: '.resolve-product-dependencies': dependency 'defaultskit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/nmdias/DefaultsKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.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--7754E27361AE5C74.txt
[3/4] Emitting module DefaultsKit
/Users/admin/builder/spi-builder-workspace/Sources/DefaultsKit/Defaults.swift:50:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// These should not be used to store sensitive information that could compromise
44 | /// the application or the user's security and privacy.
45 | public struct Defaults {
| `- note: consider making struct 'Defaults' conform to the 'Sendable' protocol
46 | private var userDefaults: UserDefaults
47 |
48 | /// Shared instance of `Defaults`, used for ad-hoc access to the user's
49 | /// defaults database throughout the app.
50 | public static let shared = Defaults()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' 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
51 |
52 | /// An instance of `Defaults` with the specified `UserDefaults` instance.
[4/4] Compiling DefaultsKit Defaults.swift
/Users/admin/builder/spi-builder-workspace/Sources/DefaultsKit/Defaults.swift:50:21: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' may have shared mutable state; this is an error in the Swift 6 language mode
43 | /// These should not be used to store sensitive information that could compromise
44 | /// the application or the user's security and privacy.
45 | public struct Defaults {
| `- note: consider making struct 'Defaults' conform to the 'Sendable' protocol
46 | private var userDefaults: UserDefaults
47 |
48 | /// Shared instance of `Defaults`, used for ad-hoc access to the user's
49 | /// defaults database throughout the app.
50 | public static let shared = Defaults()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Defaults' 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
51 |
52 | /// An instance of `Defaults` with the specified `UserDefaults` instance.
Build complete! (5.36s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DefaultsKit",
"name" : "DefaultsKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "DefaultsKit",
"targets" : [
"DefaultsKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DefaultsKitTests",
"module_type" : "SwiftTarget",
"name" : "DefaultsKitTests",
"path" : "Tests/DefaultsKitTests",
"sources" : [
"DefaultsKey + keys.swift",
"DefaultsTests.swift",
"Mocks.swift"
],
"target_dependencies" : [
"DefaultsKit"
],
"type" : "test"
},
{
"c99name" : "DefaultsKit",
"module_type" : "SwiftTarget",
"name" : "DefaultsKit",
"path" : "Sources/DefaultsKit",
"product_memberships" : [
"DefaultsKit"
],
"sources" : [
"Defaults.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.