Build Information
Successful build of Instantiate, reference 4.0.1 (5652b7
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 06:43:32 UTC.
Swift 6 data race errors: 0
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 InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tarunon/Instantiate.git
Reference: 4.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tarunon/Instantiate
* tag 4.0.1 -> FETCH_HEAD
HEAD is now at 5652b7d fix: spm package resolve problem
Cloned https://github.com/tarunon/Instantiate.git
Revision (git rev-parse @):
5652b7deb45e4826dab31fa67336c1f9649e42c2
SUCCESS checkout https://github.com/tarunon/Instantiate.git at 4.0.1
========================================
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": "instantiate",
"name": "Instantiate",
"url": "https://github.com/tarunon/Instantiate.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Instantiate",
"dependencies": [
]
}
]
}
Fetching https://github.com/tarunon/Instantiate.git
[1/780] Fetching instantiate
Fetched https://github.com/tarunon/Instantiate.git from cache (0.72s)
Creating working copy for https://github.com/tarunon/Instantiate.git
Working copy of https://github.com/tarunon/Instantiate.git resolved at 4.0.1 (5652b7d)
warning: '.resolve-product-dependencies': dependency 'instantiate' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/tarunon/Instantiate.git
https://github.com/tarunon/Instantiate.git
{
"dependencies" : [
],
"manifest_display_name" : "Instantiate",
"name" : "Instantiate",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "Instantiate",
"targets" : [
"Instantiate"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InstantiateStandard",
"targets" : [
"InstantiateStandard"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"5"
],
"targets" : [
{
"c99name" : "InstantiateTests",
"module_type" : "SwiftTarget",
"name" : "InstantiateTests",
"path" : "Tests/InstantiateTests",
"sources" : [
"InstantiateTests.swift",
"iOS/Resources-iOS.swift",
"macOS/Resources-macOS.swift",
"tvOS/Resoources-tvOS.swift"
],
"target_dependencies" : [
"Instantiate",
"InstantiateStandard"
],
"type" : "test"
},
{
"c99name" : "InstantiateStandard",
"module_type" : "SwiftTarget",
"name" : "InstantiateStandard",
"path" : "Sources/InstantiateStandard",
"product_memberships" : [
"InstantiateStandard"
],
"sources" : [
"Deprecated.swift",
"Extensions.swift"
],
"target_dependencies" : [
"Instantiate"
],
"type" : "library"
},
{
"c99name" : "Instantiate",
"module_type" : "SwiftTarget",
"name" : "Instantiate",
"path" : "Sources/Instantiate",
"product_memberships" : [
"Instantiate",
"InstantiateStandard"
],
"sources" : [
"Deprecated.swift",
"Identifier.swift",
"Injectable.swift",
"Instantiatable.swift",
"Nib.swift",
"Reusable.swift",
"Storyboard.swift",
"ViewLoadBeforeInject.swift",
"iOS/Nib+UIView.swift",
"iOS/Nib+UIViewController.swift",
"iOS/Reusable+UICollectionView.swift",
"iOS/Reusable+UITableView.swift",
"iOS/Storyboard+UIViewController.swift",
"macOS/Nib+NSView.swift",
"macOS/Nib+NSViewController.swift",
"macOS/Reusable+NSCollectionView.swift",
"macOS/Reusable+NSTableView.swift",
"macOS/Storyboard+NSViewController.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
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/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/21] Compiling Instantiate Reusable+NSTableView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Reusable+NSTableView.swift:14:34: warning: call to main actor-isolated instance method 'makeView(withIdentifier:owner:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | public extension Reusable where Self: NSView {
13 | static func dequeue(from tableView: NSTableView, with dependency: Dependency) -> Self {
| `- note: add '@MainActor' to make static method 'dequeue(from:with:)' part of global actor 'MainActor'
14 | let view = tableView.makeView(withIdentifier: Self.reusableIdentifier, owner: nil) as! Self
| `- warning: call to main actor-isolated instance method 'makeView(withIdentifier:owner:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | view.inject(dependency)
16 | return view
AppKit.NSTableView.makeView:3:24: note: calls to instance method 'makeView(withIdentifier:owner:)' from outside of its actor context are implicitly asynchronous
1 | class NSTableView {
2 | @available(macOS 10.7, *)
3 | @MainActor open func makeView(withIdentifier identifier: NSUserInterfaceItemIdentifier, owner: Any?) -> NSView?}
| |- note: calls to instance method 'makeView(withIdentifier:owner:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSControl'
4 |
[5/21] Compiling Instantiate Storyboard+UIViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:23:25: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | public extension NibInstantiatableWrapper where Self: NSView, Wrapped: NSView {
22 | var view: Wrapped {
23 | return self.subviews.first as! Wrapped
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | }
25 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:27:25: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var viewIfLoaded: Wrapped? {
27 | return self.subviews.first as? Wrapped
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:32:16: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: property declared here
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: property declared here
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:33:22: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:34:22: warning: main actor-isolated property 'autoresizingMask' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
| `- warning: main actor-isolated property 'autoresizingMask' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 | view.frame = self.bounds
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:125:37: note: mutation of this property is only permitted within the actor
123 | - (void)resizeWithOldSuperviewSize:(NSSize)oldSize;
124 | @property BOOL autoresizesSubviews;
125 | @property NSAutoresizingMaskOptions autoresizingMask;
| `- note: mutation of this property is only permitted within the actor
126 |
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:35:22: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
37 | } else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:35:35: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
37 | } else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:36:22: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:36:76: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:38:22: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:39:22: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:39:76: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:40:22: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:40:57: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:41:22: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:41:60: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:42:22: warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
| `- warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:226:51: note: property declared here
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:42:58: warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
| `- warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:226:51: note: property declared here
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:43:22: warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
| `- warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:227:51: note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:43:59: warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
| `- warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:227:51: note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
[6/21] Compiling Instantiate Nib+NSView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:23:25: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | public extension NibInstantiatableWrapper where Self: NSView, Wrapped: NSView {
22 | var view: Wrapped {
23 | return self.subviews.first as! Wrapped
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
24 | }
25 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:27:25: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | var viewIfLoaded: Wrapped? {
27 | return self.subviews.first as? Wrapped
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:32:16: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: property declared here
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: property declared here
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:33:22: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:34:22: warning: main actor-isolated property 'autoresizingMask' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
| `- warning: main actor-isolated property 'autoresizingMask' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
35 | view.frame = self.bounds
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:125:37: note: mutation of this property is only permitted within the actor
123 | - (void)resizeWithOldSuperviewSize:(NSSize)oldSize;
124 | @property BOOL autoresizesSubviews;
125 | @property NSAutoresizingMaskOptions autoresizingMask;
| `- note: mutation of this property is only permitted within the actor
126 |
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:35:22: warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
| `- warning: main actor-isolated property 'frame' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
37 | } else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:129:18: note: mutation of this property is only permitted within the actor
127 | - (void)setFrameOrigin:(NSPoint)newOrigin;
128 | - (void)setFrameSize:(NSSize)newSize;
129 | @property NSRect frame;
| `- note: mutation of this property is only permitted within the actor
130 | @property CGFloat frameRotation;
131 | @property CGFloat frameCenterRotation API_AVAILABLE(macos(10.5));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:35:35: warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
33 | view.translatesAutoresizingMaskIntoConstraints = true
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
| `- warning: main actor-isolated property 'bounds' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
37 | } else {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:139:18: note: property declared here
137 | - (void)scaleUnitSquareToSize:(NSSize)newUnitSize;
138 | - (void)rotateByAngle:(CGFloat)angle;
139 | @property NSRect bounds;
| `- note: property declared here
140 |
141 | @property (getter=isFlipped, readonly) BOOL flipped;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:36:22: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:36:76: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
34 | view.autoresizingMask = [.width, .height]
35 | view.frame = self.bounds
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:38:22: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
36 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:276:16: note: mutation of this property is only permitted within the actor
274 | /* by default, the autoresizing mask on a view gives rise to constraints that fully determine the view's position. To do anything interesting with constraints, you need to turn that off. IB will turn it off.
275 | */
276 | @property BOOL translatesAutoresizingMaskIntoConstraints API_AVAILABLE(macos(10.7));
| `- note: mutation of this property is only permitted within the actor
277 |
278 | /* constraint based layout engages lazily when someone tries to use it. If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint based layout.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:39:22: warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: call to main actor-isolated instance method 'addSubview(_:positioned:relativeTo:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)}
| |- note: calls to instance method 'addSubview(_:positioned:relativeTo:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:39:76: warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
37 | } else {
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
| `- warning: main actor-isolated property 'subviews' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:88:46: note: property declared here
86 | @property (nullable, readonly, unsafe_unretained) NSWindow *window;
87 | @property (nullable, readonly, unsafe_unretained) NSView *superview;
88 | @property (copy) NSArray<__kindof NSView *> *subviews;
| `- note: property declared here
89 | - (BOOL)isDescendantOf:(NSView *)view;
90 | - (nullable NSView *)ancestorSharedWithView:(NSView *)view;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:40:22: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:40:57: warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
38 | view.translatesAutoresizingMaskIntoConstraints = false
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
| `- warning: main actor-isolated property 'topAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:228:51: note: property declared here
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:41:22: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:41:60: warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
39 | self.addSubview(view, positioned: .above, relativeTo: self.subviews.first)
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
| `- warning: main actor-isolated property 'bottomAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:229:51: note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
230 | @property (readonly, strong) NSLayoutDimension *widthAnchor API_AVAILABLE(macos(10.11));
231 | @property (readonly, strong) NSLayoutDimension *heightAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:42:22: warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
| `- warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:226:51: note: property declared here
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:42:58: warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
40 | view.topAnchor.constraint(equalTo: self.topAnchor).isActive = true
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
| `- warning: main actor-isolated property 'leftAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
44 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:226:51: note: property declared here
224 | @property (readonly, strong) NSLayoutXAxisAnchor *leadingAnchor API_AVAILABLE(macos(10.11));
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:43:22: warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
| `- warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:227:51: note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSView.swift:43:59: warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 |
30 | func loadView(with dependency: Wrapped.Dependency) {
| `- note: add '@MainActor' to make instance method 'loadView(with:)' part of global actor 'MainActor'
31 | let view = Wrapped(with: dependency)
32 | if translatesAutoresizingMaskIntoConstraints {
:
41 | view.bottomAnchor.constraint(equalTo: self.bottomAnchor).isActive = true
42 | view.leftAnchor.constraint(equalTo: self.leftAnchor).isActive = true
43 | view.rightAnchor.constraint(equalTo: self.rightAnchor).isActive = true
| `- warning: main actor-isolated property 'rightAnchor' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | }
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSLayoutConstraint.h:227:51: note: property declared here
225 | @property (readonly, strong) NSLayoutXAxisAnchor *trailingAnchor API_AVAILABLE(macos(10.11));
226 | @property (readonly, strong) NSLayoutXAxisAnchor *leftAnchor API_AVAILABLE(macos(10.11));
227 | @property (readonly, strong) NSLayoutXAxisAnchor *rightAnchor API_AVAILABLE(macos(10.11));
| `- note: property declared here
228 | @property (readonly, strong) NSLayoutYAxisAnchor *topAnchor API_AVAILABLE(macos(10.11));
229 | @property (readonly, strong) NSLayoutYAxisAnchor *bottomAnchor API_AVAILABLE(macos(10.11));
[7/21] Compiling Instantiate Nib+UIView.swift
[8/21] Compiling Instantiate Nib+UIViewController.swift
[9/21] Compiling Instantiate Nib+NSViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSViewController.swift:17:20: warning: call to main actor-isolated initializer 'init(nibName:bundle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | let nibName = (Self.self as NibType.Type).nibName
16 | let nibBundle = (Self.self as NibType.Type).nibBundle
17 | self = Self(nibName: nibName, bundle: nibBundle)
| `- warning: call to main actor-isolated initializer 'init(nibName:bundle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | if self is ViewLoadBeforeInject {
19 | _ = self.view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:56:1: note: calls to initializer 'init(nibName:bundle:)' from outside of its actor context are implicitly asynchronous
54 | On 10.10 and higher, a nil nibName can be used, and NSViewController will automatically attempt to load a view with the same class name. See loadView for more information.
55 | */
56 | - (instancetype)initWithNibName:(nullable NSNibName)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(nibName:bundle:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
57 |
58 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSViewController.swift:19:26: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
17 | self = Self(nibName: nibName, bundle: nibBundle)
18 | if self is ViewLoadBeforeInject {
19 | _ = self.view
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 | self.inject(dependency)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Reusable+NSCollectionView.swift:14:39: warning: call to main actor-isolated instance method 'makeItem(withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | public extension Reusable where Self: NSCollectionViewItem {
13 | static func dequeue(from collectionView: NSCollectionView, for indexPath: IndexPath, with dependency: Dependency) -> Self {
| `- note: add '@MainActor' to make static method 'dequeue(from:for:with:)' part of global actor 'MainActor'
14 | let cell = collectionView.makeItem(withIdentifier: Self.reusableIdentifier, for: indexPath) as! Self
| `- warning: call to main actor-isolated instance method 'makeItem(withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | cell.inject(dependency)
16 | return cell
AppKit.NSCollectionView.makeItem:3:24: note: calls to instance method 'makeItem(withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionView {
2 | @available(macOS 10.11, *)
3 | @MainActor open func makeItem(withIdentifier identifier: NSUserInterfaceItemIdentifier, for indexPath: IndexPath) -> NSCollectionViewItem}
| |- note: calls to instance method 'makeItem(withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Reusable+NSCollectionView.swift:28:39: warning: call to main actor-isolated instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | public extension Reusable where Self: NSView {
27 | static func dequeue(from collectionView: NSCollectionView, of kind: NSCollectionView.SupplementaryElementKind, for indexPath: IndexPath, with dependency: Dependency) -> Self {
| `- note: add '@MainActor' to make static method 'dequeue(from:of:for:with:)' part of global actor 'MainActor'
28 | let view = collectionView.makeSupplementaryView(ofKind: kind, withIdentifier: Self.reusableIdentifier, for: indexPath) as! Self
| `- warning: call to main actor-isolated instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | view.inject(dependency)
30 | return view
AppKit.NSCollectionView.makeSupplementaryView:3:24: note: calls to instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionView {
2 | @available(macOS 10.11, *)
3 | @MainActor open func makeSupplementaryView(ofKind elementKind: NSCollectionView.SupplementaryElementKind, withIdentifier identifier: NSUserInterfaceItemIdentifier, for indexPath: IndexPath) -> NSView}
| |- note: calls to instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
4 |
[10/21] Compiling Instantiate Reusable+NSCollectionView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSViewController.swift:17:20: warning: call to main actor-isolated initializer 'init(nibName:bundle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | let nibName = (Self.self as NibType.Type).nibName
16 | let nibBundle = (Self.self as NibType.Type).nibBundle
17 | self = Self(nibName: nibName, bundle: nibBundle)
| `- warning: call to main actor-isolated initializer 'init(nibName:bundle:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
18 | if self is ViewLoadBeforeInject {
19 | _ = self.view
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:56:1: note: calls to initializer 'init(nibName:bundle:)' from outside of its actor context are implicitly asynchronous
54 | On 10.10 and higher, a nil nibName can be used, and NSViewController will automatically attempt to load a view with the same class name. See loadView for more information.
55 | */
56 | - (instancetype)initWithNibName:(nullable NSNibName)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(nibName:bundle:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
57 |
58 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Nib+NSViewController.swift:19:26: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
17 | self = Self(nibName: nibName, bundle: nibBundle)
18 | if self is ViewLoadBeforeInject {
19 | _ = self.view
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 | self.inject(dependency)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Reusable+NSCollectionView.swift:14:39: warning: call to main actor-isolated instance method 'makeItem(withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
11 |
12 | public extension Reusable where Self: NSCollectionViewItem {
13 | static func dequeue(from collectionView: NSCollectionView, for indexPath: IndexPath, with dependency: Dependency) -> Self {
| `- note: add '@MainActor' to make static method 'dequeue(from:for:with:)' part of global actor 'MainActor'
14 | let cell = collectionView.makeItem(withIdentifier: Self.reusableIdentifier, for: indexPath) as! Self
| `- warning: call to main actor-isolated instance method 'makeItem(withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
15 | cell.inject(dependency)
16 | return cell
AppKit.NSCollectionView.makeItem:3:24: note: calls to instance method 'makeItem(withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionView {
2 | @available(macOS 10.11, *)
3 | @MainActor open func makeItem(withIdentifier identifier: NSUserInterfaceItemIdentifier, for indexPath: IndexPath) -> NSCollectionViewItem}
| |- note: calls to instance method 'makeItem(withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
4 |
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Reusable+NSCollectionView.swift:28:39: warning: call to main actor-isolated instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 |
26 | public extension Reusable where Self: NSView {
27 | static func dequeue(from collectionView: NSCollectionView, of kind: NSCollectionView.SupplementaryElementKind, for indexPath: IndexPath, with dependency: Dependency) -> Self {
| `- note: add '@MainActor' to make static method 'dequeue(from:of:for:with:)' part of global actor 'MainActor'
28 | let view = collectionView.makeSupplementaryView(ofKind: kind, withIdentifier: Self.reusableIdentifier, for: indexPath) as! Self
| `- warning: call to main actor-isolated instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
29 | view.inject(dependency)
30 | return view
AppKit.NSCollectionView.makeSupplementaryView:3:24: note: calls to instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
1 | class NSCollectionView {
2 | @available(macOS 10.11, *)
3 | @MainActor open func makeSupplementaryView(ofKind elementKind: NSCollectionView.SupplementaryElementKind, withIdentifier identifier: NSUserInterfaceItemIdentifier, for indexPath: IndexPath) -> NSView}
| |- note: calls to instance method 'makeSupplementaryView(ofKind:withIdentifier:for:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
4 |
[11/21] Compiling Instantiate Reusable+UICollectionView.swift
[12/21] Compiling Instantiate Reusable+UITableView.swift
[13/22] Compiling Instantiate Deprecated.swift
[14/22] Compiling Instantiate Identifier.swift
[15/22] Compiling Instantiate Injectable.swift
[16/22] Compiling Instantiate Instantiatable.swift
[17/22] Compiling Instantiate Nib.swift
[18/22] Compiling Instantiate Reusable.swift
[19/22] Emitting module Instantiate
[20/22] Compiling Instantiate Storyboard.swift
[21/22] Compiling Instantiate ViewLoadBeforeInject.swift
[22/22] Compiling Instantiate Storyboard+NSViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/Instantiate/macOS/Storyboard+NSViewController.swift:22:26: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
20 | }
21 | if self is ViewLoadBeforeInject {
22 | _ = self.view
| `- warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
23 | }
24 | self.inject(dependency)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:78:37: note: property declared here
76 | /* The default implementation of the getter first invokes [self loadView] if the view hasn't been set yet. After -loadView is called, -viewDidLoad will be called. The setter can be used to assign a view that's created in a different manner than what -view's default implementation would do.
77 | */
78 | @property (strong) IBOutlet NSView *view;
| `- note: property declared here
79 |
80 | /* Returns the view controller's view, or nil if the view has not been loaded.
[23/25] Compiling InstantiateStandard Deprecated.swift
[24/25] Emitting module InstantiateStandard
[25/25] Compiling InstantiateStandard Extensions.swift
Build complete! (7.59s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Instantiate",
"name" : "Instantiate",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "Instantiate",
"targets" : [
"Instantiate"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InstantiateStandard",
"targets" : [
"InstantiateStandard"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"5"
],
"targets" : [
{
"c99name" : "InstantiateTests",
"module_type" : "SwiftTarget",
"name" : "InstantiateTests",
"path" : "Tests/InstantiateTests",
"sources" : [
"InstantiateTests.swift",
"iOS/Resources-iOS.swift",
"macOS/Resources-macOS.swift",
"tvOS/Resoources-tvOS.swift"
],
"target_dependencies" : [
"Instantiate",
"InstantiateStandard"
],
"type" : "test"
},
{
"c99name" : "InstantiateStandard",
"module_type" : "SwiftTarget",
"name" : "InstantiateStandard",
"path" : "Sources/InstantiateStandard",
"product_memberships" : [
"InstantiateStandard"
],
"sources" : [
"Deprecated.swift",
"Extensions.swift"
],
"target_dependencies" : [
"Instantiate"
],
"type" : "library"
},
{
"c99name" : "Instantiate",
"module_type" : "SwiftTarget",
"name" : "Instantiate",
"path" : "Sources/Instantiate",
"product_memberships" : [
"Instantiate",
"InstantiateStandard"
],
"sources" : [
"Deprecated.swift",
"Identifier.swift",
"Injectable.swift",
"Instantiatable.swift",
"Nib.swift",
"Reusable.swift",
"Storyboard.swift",
"ViewLoadBeforeInject.swift",
"iOS/Nib+UIView.swift",
"iOS/Nib+UIViewController.swift",
"iOS/Reusable+UICollectionView.swift",
"iOS/Reusable+UITableView.swift",
"iOS/Storyboard+UIViewController.swift",
"macOS/Nib+NSView.swift",
"macOS/Nib+NSViewController.swift",
"macOS/Reusable+NSCollectionView.swift",
"macOS/Reusable+NSTableView.swift",
"macOS/Storyboard+NSViewController.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.