Build Information
Successful build of ServiceLocator, reference master (c4a3e9
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 08:15:08 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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kibotu/ServiceLocator.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kibotu/ServiceLocator
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at c4a3e90 removed eagerly
Cloned https://github.com/kibotu/ServiceLocator.git
Revision (git rev-parse @):
c4a3e9041adbd846bfd8195148c42ddec2c5a3b8
SUCCESS checkout https://github.com/kibotu/ServiceLocator.git at master
========================================
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": "servicelocator",
"name": "ServiceLocator",
"url": "https://github.com/kibotu/ServiceLocator.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ServiceLocator",
"dependencies": [
]
}
]
}
Fetching https://github.com/kibotu/ServiceLocator.git
[1/140] Fetching servicelocator
Fetched https://github.com/kibotu/ServiceLocator.git from cache (0.67s)
Creating working copy for https://github.com/kibotu/ServiceLocator.git
Working copy of https://github.com/kibotu/ServiceLocator.git resolved at master (c4a3e90)
warning: '.resolve-product-dependencies': dependency 'servicelocator' 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/kibotu/ServiceLocator.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/10] Compiling ServiceLocator DependencyWithKey.swift
[4/10] Compiling ServiceLocator Dependency.swift
[5/10] Emitting module ServiceLocator
/Users/admin/builder/spi-builder-workspace/Sources/ServiceLocator/ServiceLocator.swift:5:16: warning: static property 'enableLogging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | /// A service locator that manages dependency injection for an application
4 | public class ServiceLocator {
5 | static var enableLogging: Bool = false
| |- warning: static property 'enableLogging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enableLogging' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enableLogging' 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
6 |
7 | /// Stores factories for eagerly created singletons
[6/10] Compiling ServiceLocator ResolutionError.swift
[7/10] Compiling ServiceLocator ServiceLocatorModule+Extensions.swift
[8/10] Compiling ServiceLocator Inject.swift
[9/10] Compiling ServiceLocator ServiceLocatorModule.swift
[10/10] Compiling ServiceLocator ServiceLocator.swift
/Users/admin/builder/spi-builder-workspace/Sources/ServiceLocator/ServiceLocator.swift:5:16: warning: static property 'enableLogging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | /// A service locator that manages dependency injection for an application
4 | public class ServiceLocator {
5 | static var enableLogging: Bool = false
| |- warning: static property 'enableLogging' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enableLogging' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enableLogging' 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
6 |
7 | /// Stores factories for eagerly created singletons
Build complete! (9.60s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ServiceLocator",
"name" : "ServiceLocator",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "16.0"
}
],
"products" : [
{
"name" : "ServiceLocator",
"targets" : [
"ServiceLocator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ServiceLocatorTests",
"module_type" : "SwiftTarget",
"name" : "ServiceLocatorTests",
"path" : "Tests/ServiceLocatorTests",
"sources" : [
"AtomicIntegerTests.swift",
"DITests.swift",
"ServiceLocatorConcurrencyTests.swift"
],
"target_dependencies" : [
"ServiceLocator"
],
"type" : "test"
},
{
"c99name" : "ServiceLocator",
"module_type" : "SwiftTarget",
"name" : "ServiceLocator",
"path" : "Sources/ServiceLocator",
"product_memberships" : [
"ServiceLocator"
],
"sources" : [
"Dependency.swift",
"DependencyWithKey.swift",
"Inject.swift",
"ResolutionError.swift",
"ServiceLocator.swift",
"ServiceLocatorModule+Extensions.swift",
"ServiceLocatorModule.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Done.