Build Information
Successful build of Impose with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/hainayanda/Impose.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[4/6] Compiling Chary Atomic.swift
[5/6] Emitting module Chary
[6/6] Compiling Chary DispatchQueue+Extensions.swift
[7/18] Compiling Impose ResolverFunction.swift
[8/18] Compiling Impose PropertyWrapper.swift
[9/19] Compiling Impose Mirror+Extensions.swift
[10/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 non-isolated 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 non-isolated 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
[11/19] Compiling Impose ModuleProvider.swift
[12/19] Compiling Impose InstanceResolver.swift
[13/19] Compiling Impose AutoInjectMock.swift
[14/19] Compiling Impose Dictionary+Extensions.swift
[15/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 non-isolated 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 non-isolated 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 {
[16/19] Compiling Impose ImposeError.swift
[17/19] Compiling Impose InjectContext.swift
[18/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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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
[19/19] Compiling Impose TypeHashable.swift
Build complete! (22.86s)
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/hainayanda/Chary.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
[1/1247] Fetching cwlpreconditiontesting
[151/1686] Fetching cwlpreconditiontesting, cwlcatchexception
[305/2200] Fetching cwlpreconditiontesting, cwlcatchexception, chary
[2201/16749] Fetching cwlpreconditiontesting, cwlcatchexception, chary, quick
[16750/35389] Fetching cwlpreconditiontesting, cwlcatchexception, chary, quick, nimble
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (3.44s)
Fetched https://github.com/hainayanda/Chary.git from cache (3.44s)
Computing version for https://github.com/hainayanda/Chary.git
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (3.44s)
Fetched https://github.com/Quick/Nimble.git from cache (3.44s)
Fetched https://github.com/Quick/Quick.git from cache (3.44s)
Computed https://github.com/hainayanda/Chary.git at 1.0.7 (0.69s)
Creating working copy for https://github.com/hainayanda/Chary.git
Working copy of https://github.com/hainayanda/Chary.git resolved at 1.0.7
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.