Build Information
Successful build of CocoaUI with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/CocoaUI.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/p-x9/CocoaUI
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at e3e5fcf Merge pull request #14 from p-x9/feature/add-empty-package-file-to-example
Cloned https://github.com/p-x9/CocoaUI.git
Revision (git rev-parse @):
e3e5fcf6c5edb4b5593085e7cae14840b6b100ef
SUCCESS checkout https://github.com/p-x9/CocoaUI.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/p-x9/CocoaUI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/10] Compiling CocoaUI View+.swift
[4/10] Compiling CocoaUI CocoaBridgeView.swift
[5/10] Compiling CocoaUI CocoaBridging.swift
[6/10] Emitting module CocoaUI
[7/10] Compiling CocoaUI OverlayView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:39:36: warning: call to main actor-isolated instance method 'find(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
37 | func findTarget(from controller: CocoaViewController) -> CocoaType? {
| `- note: add '@MainActor' to make instance method 'findTarget(from:)' part of global actor 'MainActor'
38 | if CocoaType.isSubclass(of: CocoaView.self) {
39 | return controller.view.find(for: CocoaType.self)
| `- warning: call to main actor-isolated instance method 'find(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/Extension/View+.swift:11:10: note: calls to instance method 'find(for:)' from outside of its actor context are implicitly asynchronous
9 |
10 | extension CocoaView {
11 | func find<T>(for type: T.Type) -> T? {
| `- note: calls to instance method 'find(for:)' from outside of its actor context are implicitly asynchronous
12 | for subview in subviews {
13 | if let typed = subview as? T {
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:39:31: warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
35 | }
36 |
37 | func findTarget(from controller: CocoaViewController) -> CocoaType? {
| `- note: add '@MainActor' to make instance method 'findTarget(from:)' part of global actor 'MainActor'
38 | if CocoaType.isSubclass(of: CocoaView.self) {
39 | return controller.view.find(for: CocoaType.self)
| `- warning: main actor-isolated property 'view' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
40 | }
41 |
AppKit.NSViewController:9:35: note: property declared here
7 | open var representedObject: Any? { get set }
8 | open var title: String? { get set }
9 | @IBOutlet @MainActor open var view: NSView { get set }
| `- note: property declared here
10 | @available(macOS 14.0, *)
11 | open var viewIfLoaded: NSView? { get }
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:43:31: warning: call to main actor-isolated instance method 'find(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
35 | }
36 |
37 | func findTarget(from controller: CocoaViewController) -> CocoaType? {
| `- note: add '@MainActor' to make instance method 'findTarget(from:)' part of global actor 'MainActor'
38 | if CocoaType.isSubclass(of: CocoaView.self) {
39 | return controller.view.find(for: CocoaType.self)
:
41 |
42 | if CocoaType.isSubclass(of: CocoaViewController.self) {
43 | return controller.find(for: CocoaType.self)
| `- warning: call to main actor-isolated instance method 'find(for:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
44 | }
45 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/Extension/View+.swift:24:10: note: calls to instance method 'find(for:)' from outside of its actor context are implicitly asynchronous
22 |
23 | extension CocoaViewController {
24 | func find<T>(for type: T.Type) -> T? {
| `- note: calls to instance method 'find(for:)' from outside of its actor context are implicitly asynchronous
25 | for child in children {
26 | if let typed = child as? T {
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:56:20: warning: main actor-isolated property 'updateHandler' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func updateHandlers(for controller: OverlayHostingController<Content>) {
| `- note: add '@MainActor' to make instance method 'updateHandlers(for:)' part of global actor 'MainActor'
56 | controller.updateHandler = { controller in
| `- warning: main actor-isolated property 'updateHandler' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
57 | customize(controller)
58 | }
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayHostingController.swift:18:9: note: mutation of this property is only permitted within the actor
16 | final public class OverlayHostingController<Content: View>: CocoaHostingController<Content> {
17 |
18 | var updateHandler: ((OverlayHostingController) -> Void)?
| `- note: mutation of this property is only permitted within the actor
19 | var shouldUpdate = true
20 |
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:60:20: warning: main actor-isolated property 'onViewWillAppear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func updateHandlers(for controller: OverlayHostingController<Content>) {
| `- note: add '@MainActor' to make instance method 'updateHandlers(for:)' part of global actor 'MainActor'
56 | controller.updateHandler = { controller in
57 | customize(controller)
58 | }
59 |
60 | controller.onViewWillAppear = { controller in
| `- warning: main actor-isolated property 'onViewWillAppear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
61 | let target = findTarget(from: controller)
62 | onViewWillAppear?(target)
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayHostingController.swift:21:9: note: mutation of this property is only permitted within the actor
19 | var shouldUpdate = true
20 |
21 | var onViewWillAppear: ((OverlayHostingController) -> Void)?
| `- note: mutation of this property is only permitted within the actor
22 | var onViewDidAppear: ((OverlayHostingController) -> Void)?
23 | var onViewWillDisappear: ((OverlayHostingController) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:65:20: warning: main actor-isolated property 'onViewDidAppear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func updateHandlers(for controller: OverlayHostingController<Content>) {
| `- note: add '@MainActor' to make instance method 'updateHandlers(for:)' part of global actor 'MainActor'
56 | controller.updateHandler = { controller in
57 | customize(controller)
:
63 | }
64 |
65 | controller.onViewDidAppear = { controller in
| `- warning: main actor-isolated property 'onViewDidAppear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
66 | let target = findTarget(from: controller)
67 | onViewDidAppear?(target)
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayHostingController.swift:22:9: note: mutation of this property is only permitted within the actor
20 |
21 | var onViewWillAppear: ((OverlayHostingController) -> Void)?
22 | var onViewDidAppear: ((OverlayHostingController) -> Void)?
| `- note: mutation of this property is only permitted within the actor
23 | var onViewWillDisappear: ((OverlayHostingController) -> Void)?
24 | var onViewDidDisappear: ((OverlayHostingController) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:70:20: warning: main actor-isolated property 'onViewWillDisappear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func updateHandlers(for controller: OverlayHostingController<Content>) {
| `- note: add '@MainActor' to make instance method 'updateHandlers(for:)' part of global actor 'MainActor'
56 | controller.updateHandler = { controller in
57 | customize(controller)
:
68 | }
69 |
70 | controller.onViewWillDisappear = { controller in
| `- warning: main actor-isolated property 'onViewWillDisappear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
71 | let target = findTarget(from: controller)
72 | onViewWillDisappear?(target)
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayHostingController.swift:23:9: note: mutation of this property is only permitted within the actor
21 | var onViewWillAppear: ((OverlayHostingController) -> Void)?
22 | var onViewDidAppear: ((OverlayHostingController) -> Void)?
23 | var onViewWillDisappear: ((OverlayHostingController) -> Void)?
| `- note: mutation of this property is only permitted within the actor
24 | var onViewDidDisappear: ((OverlayHostingController) -> Void)?
25 |
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayView.swift:75:20: warning: main actor-isolated property 'onViewDidDisappear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
53 | }
54 |
55 | func updateHandlers(for controller: OverlayHostingController<Content>) {
| `- note: add '@MainActor' to make instance method 'updateHandlers(for:)' part of global actor 'MainActor'
56 | controller.updateHandler = { controller in
57 | customize(controller)
:
73 | }
74 |
75 | controller.onViewDidDisappear = { controller in
| `- warning: main actor-isolated property 'onViewDidDisappear' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
76 | let target = findTarget(from: controller)
77 | onViewDidDisappear?(target)
/Users/admin/builder/spi-builder-workspace/Sources/CocoaUI/OverlayHostingController.swift:24:9: note: mutation of this property is only permitted within the actor
22 | var onViewDidAppear: ((OverlayHostingController) -> Void)?
23 | var onViewWillDisappear: ((OverlayHostingController) -> Void)?
24 | var onViewDidDisappear: ((OverlayHostingController) -> Void)?
| `- note: mutation of this property is only permitted within the actor
25 |
26 | #if canImport(UIKit)
[8/10] Compiling CocoaUI CocoaUI.swift
[9/10] Compiling CocoaUI typealias.swift
[10/10] Compiling CocoaUI OverlayHostingController.swift
Build complete! (36.06s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "CocoaUI",
"name" : "CocoaUI",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "CocoaUI",
"targets" : [
"CocoaUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CocoaUITests",
"module_type" : "SwiftTarget",
"name" : "CocoaUITests",
"path" : "Tests/CocoaUITests",
"sources" : [
"CocoaUITests.swift"
],
"target_dependencies" : [
"CocoaUI"
],
"type" : "test"
},
{
"c99name" : "CocoaUI",
"module_type" : "SwiftTarget",
"name" : "CocoaUI",
"path" : "Sources/CocoaUI",
"product_memberships" : [
"CocoaUI"
],
"sources" : [
"CocoaBridgeView.swift",
"CocoaBridging.swift",
"CocoaUI.swift",
"Extension/View+.swift",
"OverlayHostingController.swift",
"OverlayView.swift",
"Util/typealias.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.