Build Information
Successful build of Impose, reference main (65d5bb
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 09:53:52 UTC.
Swift 6 data race errors: 3
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/hainayanda/Impose.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/hainayanda/Impose
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 65d5bb1 Update README.md
Cloned https://github.com/hainayanda/Impose.git
Revision (git rev-parse @):
65d5bb1e1ceaaca76162ca4918c6ef669d6c5423
SUCCESS checkout https://github.com/hainayanda/Impose.git at main
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/hainayanda/Chary.git
Fetching https://github.com/Quick/Quick.git
[6/514] Fetching chary
[12/1771] Fetching chary, cwlpreconditiontesting
[18/2226] Fetching chary, cwlpreconditiontesting, cwlcatchexception
[2227/16954] Fetching chary, cwlpreconditiontesting, cwlcatchexception, quick
[9002/36172] Fetching chary, cwlpreconditiontesting, cwlcatchexception, quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (2.46s)
Fetched https://github.com/Quick/Nimble.git from cache (2.46s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (2.46s)
Fetched https://github.com/hainayanda/Chary.git from cache (2.46s)
Computing version for https://github.com/hainayanda/Chary.git
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (2.46s)
Computed https://github.com/hainayanda/Chary.git at 1.0.7 (0.66s)
Creating working copy for https://github.com/hainayanda/Chary.git
Working copy of https://github.com/hainayanda/Chary.git resolved at 1.0.7
========================================
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": "impose",
"name": "Impose",
"url": "https://github.com/hainayanda/Impose.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Impose",
"dependencies": [
{
"identity": "chary",
"name": "Chary",
"url": "https://github.com/hainayanda/Chary.git",
"version": "1.0.7",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Chary",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/hainayanda/Impose.git
[1/1617] Fetching impose
Fetched https://github.com/hainayanda/Impose.git from cache (0.98s)
Fetching https://github.com/hainayanda/Chary.git from cache
Fetched https://github.com/hainayanda/Chary.git from cache (0.50s)
Computing version for https://github.com/hainayanda/Chary.git
Computed https://github.com/hainayanda/Chary.git at 1.0.7 (0.02s)
Creating working copy for https://github.com/hainayanda/Chary.git
Working copy of https://github.com/hainayanda/Chary.git resolved at 1.0.7
Creating working copy for https://github.com/hainayanda/Impose.git
Working copy of https://github.com/hainayanda/Impose.git resolved at main (65d5bb1)
warning: '.resolve-product-dependencies': dependency 'impose' is not used by any target
Found 1 product dependencies
- Chary
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/hainayanda/Impose.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/6] Compiling Chary DispatchQueue+Extensions.swift
[5/6] Compiling Chary Atomic.swift
[6/6] Emitting module Chary
[7/18] Compiling Impose ModuleProvider.swift
[8/19] Compiling Impose PropertyWrapper.swift
[9/19] Emitting module Impose
/Users/admin/builder/spi-builder-workspace/Impose/Classes/InjectionEnvironment.swift:104:13: warning: var 'environmentInjectorKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 | }
103 |
104 | private var environmentInjectorKey: UnsafeMutableRawPointer = malloc(1)
| |- warning: var 'environmentInjectorKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'environmentInjectorKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'environmentInjectorKey' 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
105 |
106 | extension InjectionEnvironment {
/Users/admin/builder/spi-builder-workspace/Impose/Classes/Injector.swift:34:16: warning: static property 'defaultInjector' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Injector class
12 | public final class Injector: InjectResolver {
| `- note: class 'Injector' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: Public Static
:
32 | // MARK: Internal Static
33 |
34 | static let defaultInjector: Injector = Injector()
| |- warning: static property 'defaultInjector' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInjector' 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
35 | static var customInjector: Injector?
36 |
/Users/admin/builder/spi-builder-workspace/Impose/Classes/Injector.swift:35:16: warning: static property 'customInjector' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | static let defaultInjector: Injector = Injector()
35 | static var customInjector: Injector?
| |- warning: static property 'customInjector' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'customInjector' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'customInjector' 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
36 |
37 | // MARK: Public Properties
[10/19] Compiling Impose InjectionEnvironment.swift
/Users/admin/builder/spi-builder-workspace/Impose/Classes/InjectionEnvironment.swift:104:13: warning: var 'environmentInjectorKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
102 | }
103 |
104 | private var environmentInjectorKey: UnsafeMutableRawPointer = malloc(1)
| |- warning: var 'environmentInjectorKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'environmentInjectorKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'environmentInjectorKey' 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
105 |
106 | extension InjectionEnvironment {
[11/19] Compiling Impose AutoInjectMock.swift
[12/19] Compiling Impose Dictionary+Extensions.swift
[13/19] Compiling Impose Injector.swift
/Users/admin/builder/spi-builder-workspace/Impose/Classes/Injector.swift:34:16: warning: static property 'defaultInjector' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | /// Injector class
12 | public final class Injector: InjectResolver {
| `- note: class 'Injector' does not conform to the 'Sendable' protocol
13 |
14 | // MARK: Public Static
:
32 | // MARK: Internal Static
33 |
34 | static let defaultInjector: Injector = Injector()
| |- warning: static property 'defaultInjector' is not concurrency-safe because non-'Sendable' type 'Injector' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultInjector' 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
35 | static var customInjector: Injector?
36 |
/Users/admin/builder/spi-builder-workspace/Impose/Classes/Injector.swift:35:16: warning: static property 'customInjector' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | static let defaultInjector: Injector = Injector()
35 | static var customInjector: Injector?
| |- warning: static property 'customInjector' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'customInjector' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'customInjector' 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
36 |
37 | // MARK: Public Properties
[14/19] Compiling Impose ImposeError.swift
[15/19] Compiling Impose InjectContext.swift
[16/19] Compiling Impose ResolverFunction.swift
[17/19] Compiling Impose Mirror+Extensions.swift
[18/19] Compiling Impose InstanceResolver.swift
[19/19] Compiling Impose TypeHashable.swift
Build complete! (8.13s)
Build complete.
{
"dependencies" : [
{
"identity" : "chary",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.7",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/hainayanda/Chary.git"
}
],
"manifest_display_name" : "Impose",
"name" : "Impose",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "4.0"
}
],
"products" : [
{
"name" : "Impose",
"targets" : [
"Impose"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "Impose",
"module_type" : "SwiftTarget",
"name" : "Impose",
"path" : "Impose/Classes",
"product_dependencies" : [
"Chary"
],
"product_memberships" : [
"Impose"
],
"sources" : [
"AutoInjectMock.swift",
"Dictionary+Extensions.swift",
"ImposeError.swift",
"InjectContext.swift",
"InjectionEnvironment.swift",
"Injector.swift",
"InstanceResolver.swift",
"Mirror+Extensions.swift",
"ModuleProvider.swift",
"PropertyWrapper.swift",
"ResolverFunction.swift",
"TypeHashable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.