Build Information
Successful build of ServiceLocator, reference 2.0.0 (6c4abc
), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 08:15:01 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: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kibotu/ServiceLocator
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 6c4abc1 updated service locator to be eager init, also added reset method + updated tests
Cloned https://github.com/kibotu/ServiceLocator.git
Revision (git rev-parse @):
6c4abc1d6ec5b73d25f4f79947794a20051743d5
SUCCESS checkout https://github.com/kibotu/ServiceLocator.git at 2.0.0
========================================
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.69s)
Creating working copy for https://github.com/kibotu/ServiceLocator.git
Working copy of https://github.com/kibotu/ServiceLocator.git resolved at 2.0.0 (6c4abc1)
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 Inject.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 | /// Determines if singletons should be created eagerly or lazily
[6/10] Compiling ServiceLocator Dependency.swift
[7/10] Compiling ServiceLocator ServiceLocatorModule+Extensions.swift
[8/10] Compiling ServiceLocator ServiceLocatorModule.swift
[9/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 | /// Determines if singletons should be created eagerly or lazily
[10/10] Compiling ServiceLocator ResolutionError.swift
Build complete! (7.96s)
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.