Build Information
Successful build of DefaultsKit, reference main (44a67e
), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 15:14:33 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nmdias/DefaultsKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nmdias/DefaultsKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 44a67e9 Add link to CI badge
Cloned https://github.com/nmdias/DefaultsKit.git
Revision (git rev-parse @):
44a67e92af2804074216efec2d756a371404788c
SUCCESS checkout https://github.com/nmdias/DefaultsKit.git at main
========================================
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
[5/500] Fetching defaultskit
Fetched https://github.com/nmdias/DefaultsKit.git from cache (0.88s)
Creating working copy for https://github.com/nmdias/DefaultsKit.git
Working copy of https://github.com/nmdias/DefaultsKit.git resolved at main (44a67e9)
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
{
"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"
}
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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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.
[4/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.
Build complete! (5.41s)
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.