Build Information
Successful build of SwinjectStoryboard, reference master (7a446c), with Swift 6.1 for macOS (SPM) on 9 Dec 2025 22:07:58 UTC.
Swift 6 data race errors: 13
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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 InferSendableFromCapturesBuild Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Swinject/SwinjectStoryboard.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Swinject/SwinjectStoryboard
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 7a446cc Remove .swift-version file
Cloned https://github.com/Swinject/SwinjectStoryboard.git
Revision (git rev-parse @):
7a446cc8d8880a403519a4a43e1b64c086dd265c
SUCCESS checkout https://github.com/Swinject/SwinjectStoryboard.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Swinject/SwinjectStoryboard.git
https://github.com/Swinject/SwinjectStoryboard.git
{
"dependencies" : [
{
"identity" : "swinject",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Swinject/Swinject.git"
}
],
"manifest_display_name" : "SwinjectStoryboard",
"name" : "SwinjectStoryboard",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "SwinjectStoryboard",
"targets" : [
"SwinjectStoryboard"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwinjectStoryboard_ObjC",
"module_type" : "ClangTarget",
"name" : "SwinjectStoryboard-ObjC",
"path" : "Sources/ObjectiveC",
"product_memberships" : [
"SwinjectStoryboard"
],
"sources" : [
"Others/SwinjectStoryboard+SetUp.m"
],
"type" : "library"
},
{
"c99name" : "SwinjectStoryboard",
"module_type" : "SwiftTarget",
"name" : "SwinjectStoryboard",
"path" : "Sources",
"product_dependencies" : [
"Swinject"
],
"product_memberships" : [
"SwinjectStoryboard"
],
"sources" : [
"Box.swift",
"Container+SwinjectStoryboard.swift",
"DispatchQueue+Once.swift",
"InjectionVerifiable.swift",
"OSX/NSStoryboard+Swizzling.swift",
"OSX/_SwinjectStoryboardBase(OSX).swift",
"RegistrationNameAssociatable.swift",
"SwinjectStoryboard+StoryboardReference.swift",
"SwinjectStoryboard.swift",
"SwinjectStoryboardOption.swift",
"SwinjectStoryboardProtocol.swift",
"UnavailableItems.swift",
"ViewController+Swinject.swift",
"iOS-tvOS/UIStoryboard+Swizzling.swift",
"iOS-tvOS/_SwinjectStoryboardBase(iOS-tvOS).swift"
],
"target_dependencies" : [
"SwinjectStoryboard-ObjC"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/4] Write sources
[2/4] Write swift-version-2F0A5646E1D333AE.txt
[3/25] Compiling SwinjectStoryboard+SetUp.m
[5/25] Emitting module Swinject
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/27] Compiling Swinject UnavailableItems.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/27] Compiling Swinject _Resolver.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/27] Compiling Swinject Assembler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/27] Compiling Swinject Assembly.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/27] Compiling Swinject Behavior.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/27] Compiling Swinject InstanceStorage.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/27] Compiling Swinject InstanceWrapper.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/27] Compiling Swinject ServiceEntry.TypeForwarding.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/27] Compiling Swinject ServiceEntry.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/27] Compiling Swinject Container.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[16/27] Compiling Swinject DebugHelper.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/27] Compiling Swinject RecursiveLock.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[18/27] Compiling Swinject Resolver.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[19/27] Compiling Swinject Container.Arguments.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/27] Compiling Swinject Container.Logging.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/27] Compiling Swinject Container.TypeForwarding.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[22/27] Compiling Swinject ServiceKey.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[23/27] Compiling Swinject ThreadSafeDictionary.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[24/27] Compiling Swinject FunctionType.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/27] Compiling Swinject GraphIdentifier.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[26/27] Compiling Swinject ObjectScope.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/27] Compiling Swinject ReadWriteLock.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[28/42] Compiling SwinjectStoryboard UnavailableItems.swift
[29/43] Compiling SwinjectStoryboard Box.swift
[30/43] Compiling SwinjectStoryboard Container+SwinjectStoryboard.swift
[31/43] Compiling SwinjectStoryboard _SwinjectStoryboardBase(iOS-tvOS).swift
[32/43] Emitting module SwinjectStoryboard
/Users/admin/builder/spi-builder-workspace/Sources/DispatchQueue+Once.swift:5:24: warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | internal extension DispatchQueue {
4 |
5 | private static var _onceTracker: [String] = []
| |- warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_onceTracker' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_onceTracker' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | static func once(token: String, block: () -> Void) {
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard+StoryboardReference.swift:53:13: warning: var 'storyboardStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | }
52 |
53 | private var storyboardStack = [SwinjectStoryboard]()
| |- warning: var 'storyboardStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'storyboardStack' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'storyboardStack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:37:23: warning: static property 'defaultContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | /// - Implicit instantiation of UIWindow and its root view controller from "Main" storyboard.
36 | /// - Storyboard references to transit from a storyboard to another.
37 | public static var defaultContainer = Container()
| |- warning: static property 'defaultContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultContainer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | // Boxing to workaround a runtime error [Xcode 7.1.1 and Xcode 7.2 beta 4]
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:200:108: warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
184 | private func injectDependency(to controller: Container.Controller) {
| `- note: add '@MainActor' to make instance method 'injectDependency(to:)' part of global actor 'MainActor'
185 | guard let controller = controller as? InjectionVerifiable, !controller.wasInjected else { return }
186 | defer { controller.wasInjected = true }
:
198 | fatalError("A type conforming Resolver protocol must conform _Resolver protocol too.")
199 | }
200 | if let windowController = controller as? NSWindowController, let viewController = windowController.contentViewController {
| `- warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | injectDependency(to: viewController)
202 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h:95:48: note: property declared here
93 | /* The view controller for the window's contentView. Tracks the window property of the same name.
94 | */
95 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
| `- note: property declared here
96 |
97 | /* The window getter will load the nib file (if there is one and it has not yet been loaded) and then return the window. If it has to load the window, it will first call -windowWillLoad, then -loadWindow, then -windowDidLoad. To affect nib loading or do something before or after it happens, you should always override those other methods.
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:205:41: warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
184 | private func injectDependency(to controller: Container.Controller) {
| `- note: add '@MainActor' to make instance method 'injectDependency(to:)' part of global actor 'MainActor'
185 | guard let controller = controller as? InjectionVerifiable, !controller.wasInjected else { return }
186 | defer { controller.wasInjected = true }
:
203 | if let viewController = controller as? NSViewController {
204 | #if swift(>=4.2)
205 | for child in viewController.children {
| `- warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | injectDependency(to: child)
207 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:201:56: note: property declared here
199 | /* An array of children view controllers. Assignment of the array filters all additions and removals through the insert and remove API below.
200 | */
201 | @property (copy) NSArray<__kindof NSViewController *> *childViewControllers API_AVAILABLE(macos(10.10));
| `- note: property declared here
202 |
203 | /* A convenience method for adding a child view controller; this simply calls insertChildViewController:atIndex: at the end of the array.
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:32:13: warning: var 'nsvcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | import Cocoa
31 |
32 | private var nsvcRegistrationNameKey: String = "NSViewController.swinjectRegistrationName"
| |- warning: var 'nsvcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nsvcRegistrationNameKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nsvcRegistrationNameKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:33:13: warning: var 'nswcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | private var nsvcRegistrationNameKey: String = "NSViewController.swinjectRegistrationName"
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
| |- warning: var 'nswcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nswcRegistrationNameKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nswcRegistrationNameKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:34:13: warning: var 'nsvcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | private var nsvcRegistrationNameKey: String = "NSViewController.swinjectRegistrationName"
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
| |- warning: var 'nsvcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nsvcWasInjectedKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nsvcWasInjectedKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
36 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:35:13: warning: var 'nswcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
| |- warning: var 'nswcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nswcWasInjectedKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nswcWasInjectedKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | extension NSViewController: RegistrationNameAssociatable, InjectionVerifiable {
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:38:18: warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
36 |
37 | extension NSViewController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'RegistrationNameAssociatable' conformance to defer isolation checking to run time
38 | internal var swinjectRegistrationName: String? {
| `- warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
39 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
40 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
/Users/admin/builder/spi-builder-workspace/Sources/RegistrationNameAssociatable.swift:12:9: note: requirement 'swinjectRegistrationName' declared here
10 |
11 | @objc internal protocol RegistrationNameAssociatable: AnyObject {
12 | var swinjectRegistrationName: String? { get set }
| `- note: requirement 'swinjectRegistrationName' declared here
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:43:18: warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
36 |
37 | extension NSViewController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'InjectionVerifiable' conformance to defer isolation checking to run time
38 | internal var swinjectRegistrationName: String? {
39 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
:
41 | }
42 |
43 | internal var wasInjected: Bool {
| `- warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
44 | get { return getAssociatedBool(key: &nsvcWasInjectedKey) ?? false }
45 | set { setAssociatedBool(newValue, key: &nsvcWasInjectedKey) }
/Users/admin/builder/spi-builder-workspace/Sources/InjectionVerifiable.swift:12:9: note: requirement 'wasInjected' declared here
10 |
11 | @objc internal protocol InjectionVerifiable: AnyObject {
12 | var wasInjected: Bool { get set }
| `- note: requirement 'wasInjected' declared here
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:50:18: warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
47 | }
48 |
49 | extension NSWindowController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'RegistrationNameAssociatable' conformance to defer isolation checking to run time
50 | internal var swinjectRegistrationName: String? {
| `- warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
51 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
52 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
/Users/admin/builder/spi-builder-workspace/Sources/RegistrationNameAssociatable.swift:12:9: note: requirement 'swinjectRegistrationName' declared here
10 |
11 | @objc internal protocol RegistrationNameAssociatable: AnyObject {
12 | var swinjectRegistrationName: String? { get set }
| `- note: requirement 'swinjectRegistrationName' declared here
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:55:18: warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
47 | }
48 |
49 | extension NSWindowController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'InjectionVerifiable' conformance to defer isolation checking to run time
50 | internal var swinjectRegistrationName: String? {
51 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
:
53 | }
54 |
55 | internal var wasInjected: Bool {
| `- warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
56 | get { return getAssociatedBool(key: &nswcWasInjectedKey) ?? false }
57 | set { setAssociatedBool(newValue, key: &nswcWasInjectedKey) }
/Users/admin/builder/spi-builder-workspace/Sources/InjectionVerifiable.swift:12:9: note: requirement 'wasInjected' declared here
10 |
11 | @objc internal protocol InjectionVerifiable: AnyObject {
12 | var wasInjected: Bool { get set }
| `- note: requirement 'wasInjected' declared here
13 | }
14 |
[33/43] Compiling SwinjectStoryboard NSStoryboard+Swizzling.swift
[34/43] Compiling SwinjectStoryboard _SwinjectStoryboardBase(OSX).swift
[35/43] Compiling SwinjectStoryboard ViewController+Swinject.swift
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:32:13: warning: var 'nsvcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
30 | import Cocoa
31 |
32 | private var nsvcRegistrationNameKey: String = "NSViewController.swinjectRegistrationName"
| |- warning: var 'nsvcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nsvcRegistrationNameKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nsvcRegistrationNameKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:33:13: warning: var 'nswcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | private var nsvcRegistrationNameKey: String = "NSViewController.swinjectRegistrationName"
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
| |- warning: var 'nswcRegistrationNameKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nswcRegistrationNameKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nswcRegistrationNameKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:34:13: warning: var 'nsvcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
32 | private var nsvcRegistrationNameKey: String = "NSViewController.swinjectRegistrationName"
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
| |- warning: var 'nsvcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nsvcWasInjectedKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nsvcWasInjectedKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
36 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:35:13: warning: var 'nswcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private var nswcRegistrationNameKey: String = "NSWindowController.swinjectRegistrationName"
34 | private var nsvcWasInjectedKey: String = "NSViewController.wasInjected"
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
| |- warning: var 'nswcWasInjectedKey' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'nswcWasInjectedKey' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'nswcWasInjectedKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | extension NSViewController: RegistrationNameAssociatable, InjectionVerifiable {
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:38:18: warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
36 |
37 | extension NSViewController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'RegistrationNameAssociatable' conformance to defer isolation checking to run time
38 | internal var swinjectRegistrationName: String? {
| `- warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
39 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
40 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
/Users/admin/builder/spi-builder-workspace/Sources/RegistrationNameAssociatable.swift:12:9: note: requirement 'swinjectRegistrationName' declared here
10 |
11 | @objc internal protocol RegistrationNameAssociatable: AnyObject {
12 | var swinjectRegistrationName: String? { get set }
| `- note: requirement 'swinjectRegistrationName' declared here
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:43:18: warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
35 | private var nswcWasInjectedKey: String = "NSWindowController.wasInjected"
36 |
37 | extension NSViewController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'InjectionVerifiable' conformance to defer isolation checking to run time
38 | internal var swinjectRegistrationName: String? {
39 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
:
41 | }
42 |
43 | internal var wasInjected: Bool {
| `- warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
44 | get { return getAssociatedBool(key: &nsvcWasInjectedKey) ?? false }
45 | set { setAssociatedBool(newValue, key: &nsvcWasInjectedKey) }
/Users/admin/builder/spi-builder-workspace/Sources/InjectionVerifiable.swift:12:9: note: requirement 'wasInjected' declared here
10 |
11 | @objc internal protocol InjectionVerifiable: AnyObject {
12 | var wasInjected: Bool { get set }
| `- note: requirement 'wasInjected' declared here
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:50:18: warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
47 | }
48 |
49 | extension NSWindowController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'RegistrationNameAssociatable' conformance to defer isolation checking to run time
50 | internal var swinjectRegistrationName: String? {
| `- warning: main actor-isolated property 'swinjectRegistrationName' cannot be used to satisfy nonisolated requirement from protocol 'RegistrationNameAssociatable'; this is an error in the Swift 6 language mode
51 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
52 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
/Users/admin/builder/spi-builder-workspace/Sources/RegistrationNameAssociatable.swift:12:9: note: requirement 'swinjectRegistrationName' declared here
10 |
11 | @objc internal protocol RegistrationNameAssociatable: AnyObject {
12 | var swinjectRegistrationName: String? { get set }
| `- note: requirement 'swinjectRegistrationName' declared here
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:55:18: warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
47 | }
48 |
49 | extension NSWindowController: RegistrationNameAssociatable, InjectionVerifiable {
| `- note: add '@preconcurrency' to the 'InjectionVerifiable' conformance to defer isolation checking to run time
50 | internal var swinjectRegistrationName: String? {
51 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
:
53 | }
54 |
55 | internal var wasInjected: Bool {
| `- warning: main actor-isolated property 'wasInjected' cannot be used to satisfy nonisolated requirement from protocol 'InjectionVerifiable'; this is an error in the Swift 6 language mode
56 | get { return getAssociatedBool(key: &nswcWasInjectedKey) ?? false }
57 | set { setAssociatedBool(newValue, key: &nswcWasInjectedKey) }
/Users/admin/builder/spi-builder-workspace/Sources/InjectionVerifiable.swift:12:9: note: requirement 'wasInjected' declared here
10 |
11 | @objc internal protocol InjectionVerifiable: AnyObject {
12 | var wasInjected: Bool { get set }
| `- note: requirement 'wasInjected' declared here
13 | }
14 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:39:47: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
37 | extension NSViewController: RegistrationNameAssociatable, InjectionVerifiable {
38 | internal var swinjectRegistrationName: String? {
39 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
40 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:40:50: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
38 | internal var swinjectRegistrationName: String? {
39 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
40 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
41 | }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:44:45: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
42 |
43 | internal var wasInjected: Bool {
44 | get { return getAssociatedBool(key: &nsvcWasInjectedKey) ?? false }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
45 | set { setAssociatedBool(newValue, key: &nsvcWasInjectedKey) }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:45:48: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
43 | internal var wasInjected: Bool {
44 | get { return getAssociatedBool(key: &nsvcWasInjectedKey) ?? false }
45 | set { setAssociatedBool(newValue, key: &nsvcWasInjectedKey) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:51:47: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
49 | extension NSWindowController: RegistrationNameAssociatable, InjectionVerifiable {
50 | internal var swinjectRegistrationName: String? {
51 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
52 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:52:50: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
50 | internal var swinjectRegistrationName: String? {
51 | get { return getAssociatedString(key: &nsvcRegistrationNameKey) }
52 | set { setAssociatedString(newValue, key: &nsvcRegistrationNameKey) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:56:45: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
54 |
55 | internal var wasInjected: Bool {
56 | get { return getAssociatedBool(key: &nswcWasInjectedKey) ?? false }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
57 | set { setAssociatedBool(newValue, key: &nswcWasInjectedKey) }
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/ViewController+Swinject.swift:57:48: warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
55 | internal var wasInjected: Bool {
56 | get { return getAssociatedBool(key: &nswcWasInjectedKey) ?? false }
57 | set { setAssociatedBool(newValue, key: &nswcWasInjectedKey) }
| `- warning: forming 'UnsafeRawPointer' to an inout variable of type String exposes the internal representation rather than the string contents.
58 | }
59 | }
[36/43] Compiling SwinjectStoryboard RegistrationNameAssociatable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard+StoryboardReference.swift:53:13: warning: var 'storyboardStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | }
52 |
53 | private var storyboardStack = [SwinjectStoryboard]()
| |- warning: var 'storyboardStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'storyboardStack' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'storyboardStack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
[37/43] Compiling SwinjectStoryboard SwinjectStoryboard+StoryboardReference.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard+StoryboardReference.swift:53:13: warning: var 'storyboardStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
51 | }
52 |
53 | private var storyboardStack = [SwinjectStoryboard]()
| |- warning: var 'storyboardStack' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'storyboardStack' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'storyboardStack' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
[38/43] Compiling SwinjectStoryboard SwinjectStoryboardProtocol.swift
[39/43] Compiling SwinjectStoryboard UIStoryboard+Swizzling.swift
[40/43] Compiling SwinjectStoryboard DispatchQueue+Once.swift
/Users/admin/builder/spi-builder-workspace/Sources/DispatchQueue+Once.swift:5:24: warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | internal extension DispatchQueue {
4 |
5 | private static var _onceTracker: [String] = []
| |- warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_onceTracker' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_onceTracker' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | static func once(token: String, block: () -> Void) {
[41/43] Compiling SwinjectStoryboard InjectionVerifiable.swift
/Users/admin/builder/spi-builder-workspace/Sources/DispatchQueue+Once.swift:5:24: warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | internal extension DispatchQueue {
4 |
5 | private static var _onceTracker: [String] = []
| |- warning: static property '_onceTracker' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_onceTracker' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_onceTracker' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 |
7 | static func once(token: String, block: () -> Void) {
[42/43] Compiling SwinjectStoryboard SwinjectStoryboard.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:37:23: warning: static property 'defaultContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | /// - Implicit instantiation of UIWindow and its root view controller from "Main" storyboard.
36 | /// - Storyboard references to transit from a storyboard to another.
37 | public static var defaultContainer = Container()
| |- warning: static property 'defaultContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultContainer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | // Boxing to workaround a runtime error [Xcode 7.1.1 and Xcode 7.2 beta 4]
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:200:108: warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
184 | private func injectDependency(to controller: Container.Controller) {
| `- note: add '@MainActor' to make instance method 'injectDependency(to:)' part of global actor 'MainActor'
185 | guard let controller = controller as? InjectionVerifiable, !controller.wasInjected else { return }
186 | defer { controller.wasInjected = true }
:
198 | fatalError("A type conforming Resolver protocol must conform _Resolver protocol too.")
199 | }
200 | if let windowController = controller as? NSWindowController, let viewController = windowController.contentViewController {
| `- warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | injectDependency(to: viewController)
202 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h:95:48: note: property declared here
93 | /* The view controller for the window's contentView. Tracks the window property of the same name.
94 | */
95 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
| `- note: property declared here
96 |
97 | /* The window getter will load the nib file (if there is one and it has not yet been loaded) and then return the window. If it has to load the window, it will first call -windowWillLoad, then -loadWindow, then -windowDidLoad. To affect nib loading or do something before or after it happens, you should always override those other methods.
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:205:41: warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
184 | private func injectDependency(to controller: Container.Controller) {
| `- note: add '@MainActor' to make instance method 'injectDependency(to:)' part of global actor 'MainActor'
185 | guard let controller = controller as? InjectionVerifiable, !controller.wasInjected else { return }
186 | defer { controller.wasInjected = true }
:
203 | if let viewController = controller as? NSViewController {
204 | #if swift(>=4.2)
205 | for child in viewController.children {
| `- warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | injectDependency(to: child)
207 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:201:56: note: property declared here
199 | /* An array of children view controllers. Assignment of the array filters all additions and removals through the insert and remove API below.
200 | */
201 | @property (copy) NSArray<__kindof NSViewController *> *childViewControllers API_AVAILABLE(macos(10.10));
| `- note: property declared here
202 |
203 | /* A convenience method for adding a child view controller; this simply calls insertChildViewController:atIndex: at the end of the array.
[43/43] Compiling SwinjectStoryboard SwinjectStoryboardOption.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:37:23: warning: static property 'defaultContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
35 | /// - Implicit instantiation of UIWindow and its root view controller from "Main" storyboard.
36 | /// - Storyboard references to transit from a storyboard to another.
37 | public static var defaultContainer = Container()
| |- warning: static property 'defaultContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultContainer' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | // Boxing to workaround a runtime error [Xcode 7.1.1 and Xcode 7.2 beta 4]
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:200:108: warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
184 | private func injectDependency(to controller: Container.Controller) {
| `- note: add '@MainActor' to make instance method 'injectDependency(to:)' part of global actor 'MainActor'
185 | guard let controller = controller as? InjectionVerifiable, !controller.wasInjected else { return }
186 | defer { controller.wasInjected = true }
:
198 | fatalError("A type conforming Resolver protocol must conform _Resolver protocol too.")
199 | }
200 | if let windowController = controller as? NSWindowController, let viewController = windowController.contentViewController {
| `- warning: main actor-isolated property 'contentViewController' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
201 | injectDependency(to: viewController)
202 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSWindowController.h:95:48: note: property declared here
93 | /* The view controller for the window's contentView. Tracks the window property of the same name.
94 | */
95 | @property (nullable, strong) NSViewController *contentViewController API_AVAILABLE(macos(10.10));
| `- note: property declared here
96 |
97 | /* The window getter will load the nib file (if there is one and it has not yet been loaded) and then return the window. If it has to load the window, it will first call -windowWillLoad, then -loadWindow, then -windowDidLoad. To affect nib loading or do something before or after it happens, you should always override those other methods.
/Users/admin/builder/spi-builder-workspace/Sources/SwinjectStoryboard.swift:205:41: warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
182 | }
183 |
184 | private func injectDependency(to controller: Container.Controller) {
| `- note: add '@MainActor' to make instance method 'injectDependency(to:)' part of global actor 'MainActor'
185 | guard let controller = controller as? InjectionVerifiable, !controller.wasInjected else { return }
186 | defer { controller.wasInjected = true }
:
203 | if let viewController = controller as? NSViewController {
204 | #if swift(>=4.2)
205 | for child in viewController.children {
| `- warning: main actor-isolated property 'children' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
206 | injectDependency(to: child)
207 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:201:56: note: property declared here
199 | /* An array of children view controllers. Assignment of the array filters all additions and removals through the insert and remove API below.
200 | */
201 | @property (copy) NSArray<__kindof NSViewController *> *childViewControllers API_AVAILABLE(macos(10.10));
| `- note: property declared here
202 |
203 | /* A convenience method for adding a child view controller; this simply calls insertChildViewController:atIndex: at the end of the array.
Build complete! (11.81s)
Fetching https://github.com/Swinject/Swinject.git
[1/9318] Fetching swinject
Fetched https://github.com/Swinject/Swinject.git from cache (1.25s)
Computing version for https://github.com/Swinject/Swinject.git
Computed https://github.com/Swinject/Swinject.git at 2.10.0 (1.71s)
Creating working copy for https://github.com/Swinject/Swinject.git
Working copy of https://github.com/Swinject/Swinject.git resolved at 2.10.0
warning: 'swinject': found 4 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Swinject/Sources/ServiceEntry.TypeForwarding.erb
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Swinject/Sources/Info.plist
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Swinject/Sources/Resolver.erb
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Swinject/Sources/Container.Arguments.erb
Build complete.
{
"dependencies" : [
{
"identity" : "swinject",
"requirement" : {
"range" : [
{
"lower_bound" : "2.7.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Swinject/Swinject.git"
}
],
"manifest_display_name" : "SwinjectStoryboard",
"name" : "SwinjectStoryboard",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
}
],
"products" : [
{
"name" : "SwinjectStoryboard",
"targets" : [
"SwinjectStoryboard"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwinjectStoryboard_ObjC",
"module_type" : "ClangTarget",
"name" : "SwinjectStoryboard-ObjC",
"path" : "Sources/ObjectiveC",
"product_memberships" : [
"SwinjectStoryboard"
],
"sources" : [
"Others/SwinjectStoryboard+SetUp.m"
],
"type" : "library"
},
{
"c99name" : "SwinjectStoryboard",
"module_type" : "SwiftTarget",
"name" : "SwinjectStoryboard",
"path" : "Sources",
"product_dependencies" : [
"Swinject"
],
"product_memberships" : [
"SwinjectStoryboard"
],
"sources" : [
"Box.swift",
"Container+SwinjectStoryboard.swift",
"DispatchQueue+Once.swift",
"InjectionVerifiable.swift",
"OSX/NSStoryboard+Swizzling.swift",
"OSX/_SwinjectStoryboardBase(OSX).swift",
"RegistrationNameAssociatable.swift",
"SwinjectStoryboard+StoryboardReference.swift",
"SwinjectStoryboard.swift",
"SwinjectStoryboardOption.swift",
"SwinjectStoryboardProtocol.swift",
"UnavailableItems.swift",
"ViewController+Swinject.swift",
"iOS-tvOS/UIStoryboard+Swizzling.swift",
"iOS-tvOS/_SwinjectStoryboardBase(iOS-tvOS).swift"
],
"target_dependencies" : [
"SwinjectStoryboard-ObjC"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.