Build Information
Successful build of Impose, reference main (65d5bb
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 16:22:21 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 -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.1
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/CwlPreconditionTesting.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/hainayanda/Chary.git
Fetching https://github.com/Quick/Quick.git
[1/1257] Fetching cwlpreconditiontesting
[27/1771] Fetching cwlpreconditiontesting, chary
[414/2226] Fetching cwlpreconditiontesting, chary, cwlcatchexception
[2227/16966] Fetching cwlpreconditiontesting, chary, cwlcatchexception, quick
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.90s)
Fetched https://github.com/hainayanda/Chary.git from cache (0.90s)
Computing version for https://github.com/hainayanda/Chary.git
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.90s)
[148/14740] Fetching quick
[14741/34015] Fetching quick, nimble
Computed https://github.com/hainayanda/Chary.git at 1.0.7 (0.60s)
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 (1.05s)
Fetching https://github.com/hainayanda/Chary.git from cache
Fetched https://github.com/hainayanda/Chary.git from cache (0.47s)
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/Impose.git
Working copy of https://github.com/hainayanda/Impose.git resolved at main (65d5bb1)
Creating working copy for https://github.com/hainayanda/Chary.git
Working copy of https://github.com/hainayanda/Chary.git resolved at 1.0.7
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
{
"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"
}
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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/6] Compiling Chary Atomic.swift
[5/6] Compiling Chary DispatchQueue+Extensions.swift
[6/6] Emitting module Chary
[7/18] Compiling Impose PropertyWrapper.swift
[8/18] Compiling Impose ModuleProvider.swift
[9/18] Compiling Impose ResolverFunction.swift
[10/18] Compiling Impose Mirror+Extensions.swift
[11/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 {
[12/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
[13/19] Compiling Impose InstanceResolver.swift
[14/19] Compiling Impose AutoInjectMock.swift
[15/19] Compiling Impose Dictionary+Extensions.swift
[16/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
[17/19] Compiling Impose ImposeError.swift
[18/19] Compiling Impose InjectContext.swift
[19/19] Compiling Impose TypeHashable.swift
Build complete! (7.79s)
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.