Build Information
Successful build of DSFMenuBuilder with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 1
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/dagronf/DSFMenuBuilder.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFMenuBuilder
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7f8f8ee Fixed 5.3 build
Cloned https://github.com/dagronf/DSFMenuBuilder.git
Revision (git rev-parse @):
7f8f8ee0c5fb7ee6c06d057cd5ada0f99e3d3190
SUCCESS checkout https://github.com/dagronf/DSFMenuBuilder.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/dagronf/DSFMenuBuilder.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/6] Write sources
[1/6] Write swift-version-6F35C1178C84523A.txt
[3/17] Compiling DSFMenuBuilder ViewItem+NSViewController.swift
[4/17] Compiling DSFMenuBuilder SeparatorItem.swift
[5/17] Compiling DSFMenuBuilder MenuItemTarget.swift
[6/17] Compiling DSFMenuBuilder AnyMenuItem.swift
[7/17] Compiling DSFMenuBuilder MenuItemCollection.swift
[8/17] Compiling DSFMenuBuilder NSMenu+extensions.swift
[9/17] Emitting module DSFMenuBuilder
/Users/admin/builder/spi-builder-workspace/Sources/DSFMenuBuilder/menu-item-types/ViewItem.swift:57:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
55 |
56 | // The view embedded within the menu item. The custom view will become a child of this view
57 | private let core = NSMenuItemHighlightableView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
[10/17] Compiling DSFMenuBuilder ViewItem.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFMenuBuilder/menu-item-types/ViewItem.swift:57:14: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
55 |
56 | // The view embedded within the menu item. The custom view will become a child of this view
57 | private let core = NSMenuItemHighlightableView()
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
58 | }
59 |
/Users/admin/builder/spi-builder-workspace/Sources/DSFMenuBuilder/menu-item-types/ViewItem.swift:72:12: warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
70 | @available(macOS 10.15, *)
71 | convenience init<CustomView: View>(_ title: String, _ view: CustomView) {
72 | let vc = HostingViewController(view)
| `- warning: call to main actor-isolated initializer 'init(_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
73 | vc.view.translatesAutoresizingMaskIntoConstraints = false
74 | self.init(title, vc)
:
106 | }
107 |
108 | init(_ view: CustomView) {
| `- note: calls to initializer 'init(_:)' from outside of its actor context are implicitly asynchronous
109 | self.client = view
110 | super.init(nibName: nil, bundle: nil)
/Users/admin/builder/spi-builder-workspace/Sources/DSFMenuBuilder/menu-item-types/ViewItem.swift:73:11: warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
71 | convenience init<CustomView: View>(_ title: String, _ view: CustomView) {
72 | let vc = HostingViewController(view)
73 | vc.view.translatesAutoresizingMaskIntoConstraints = false
| `- warning: main actor-isolated property 'translatesAutoresizingMaskIntoConstraints' can not be mutated from a non-isolated context; this is an error in the Swift 6 language mode
74 | self.init(title, vc)
75 | }
AppKit.NSView:3:25: note: mutation of this property is only permitted within the actor
1 | extension NSView {
2 | @available(macOS 10.7, *)
3 | @MainActor open var translatesAutoresizingMaskIntoConstraints: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
4 | @available(macOS 10.7, *)
5 | open class var requiresConstraintBasedLayout: Bool { get }
/Users/admin/builder/spi-builder-workspace/Sources/DSFMenuBuilder/menu-item-types/ViewItem.swift:73:6: 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
71 | convenience init<CustomView: View>(_ title: String, _ view: CustomView) {
72 | let vc = HostingViewController(view)
73 | vc.view.translatesAutoresizingMaskIntoConstraints = false
| `- 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
74 | self.init(title, vc)
75 | }
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/DSFMenuBuilder/menu-item-types/ViewItem.swift:81:35: 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
77 |
78 | private extension ViewItem {
79 | func setup(viewController: NSViewController) {
| `- note: add '@MainActor' to make instance method 'setup(viewController:)' part of global actor 'MainActor'
80 | // Attach the effect view to the menuitem
81 | self.item.view = viewController.view
| `- 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
82 | self.target.viewController = viewController
83 | }
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/DSFMenuBuilder/menu-item-types/ViewItem.swift:72:12: warning: sending 'view' risks causing data races; this is an error in the Swift 6 language mode
70 | @available(macOS 10.15, *)
71 | convenience init<CustomView: View>(_ title: String, _ view: CustomView) {
72 | let vc = HostingViewController(view)
| |- warning: sending 'view' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'view' to main actor-isolated initializer 'init(_:)' risks causing data races between main actor-isolated and task-isolated uses
73 | vc.view.translatesAutoresizingMaskIntoConstraints = false
74 | self.init(title, vc)
[11/17] Compiling DSFMenuBuilder MenuItem.swift
[12/17] Compiling DSFMenuBuilder Menu.swift
[13/17] Compiling DSFMenuBuilder MenuStateImage.swift
[14/18] Compiling DSFMenuBuilder NSMenuItemHighlightableView.swift
[14/18] Write Objects.LinkFileList
[16/18] Archiving libDSFMenuBuilder-static.a
[17/18] Linking libDSFMenuBuilder-shared.dylib
Build complete! (41.75s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "DSFMenuBuilder",
"name" : "DSFMenuBuilder",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.11"
}
],
"products" : [
{
"name" : "DSFMenuBuilder",
"targets" : [
"DSFMenuBuilder"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DSFMenuBuilder-static",
"targets" : [
"DSFMenuBuilder"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "DSFMenuBuilder-shared",
"targets" : [
"DSFMenuBuilder"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DSFMenuBuilderTests",
"module_type" : "SwiftTarget",
"name" : "DSFMenuBuilderTests",
"path" : "Tests/DSFMenuBuilderTests",
"sources" : [
"DSFMenuBuilderTests.swift"
],
"target_dependencies" : [
"DSFMenuBuilder"
],
"type" : "test"
},
{
"c99name" : "DSFMenuBuilder",
"module_type" : "SwiftTarget",
"name" : "DSFMenuBuilder",
"path" : "Sources/DSFMenuBuilder",
"product_memberships" : [
"DSFMenuBuilder",
"DSFMenuBuilder-static",
"DSFMenuBuilder-shared"
],
"sources" : [
"Menu.swift",
"MenuStateImage.swift",
"NSMenu+extensions.swift",
"menu-item-types/MenuItem.swift",
"menu-item-types/MenuItemCollection.swift",
"menu-item-types/SeparatorItem.swift",
"menu-item-types/ViewItem+NSViewController.swift",
"menu-item-types/ViewItem.swift",
"private/AnyMenuItem.swift",
"private/MenuItemTarget.swift",
"private/utils/NSMenuItemHighlightableView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.