The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of DSFMenuBuilder, reference main (7f8f8e), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 06:28:25 UTC.

Swift 6 data race errors: 1

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/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
========================================
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": "dsfmenubuilder",
      "name": "DSFMenuBuilder",
      "url": "https://github.com/dagronf/DSFMenuBuilder.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFMenuBuilder",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dagronf/DSFMenuBuilder.git
[1/324] Fetching dsfmenubuilder
Fetched https://github.com/dagronf/DSFMenuBuilder.git from cache (0.70s)
Creating working copy for https://github.com/dagronf/DSFMenuBuilder.git
Working copy of https://github.com/dagronf/DSFMenuBuilder.git resolved at main (7f8f8ee)
warning: '.resolve-product-dependencies': dependency 'dsfmenubuilder' 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/dagronf/DSFMenuBuilder.git
https://github.com/dagronf/DSFMenuBuilder.git
{
  "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"
}
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/6] Write sources
[1/6] Write swift-version-2F0A5646E1D333AE.txt
[3/17] Compiling DSFMenuBuilder NSMenu+extensions.swift
[4/17] Compiling DSFMenuBuilder MenuItemCollection.swift
[5/18] 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 |
[6/18] Compiling DSFMenuBuilder Menu.swift
[7/18] Compiling DSFMenuBuilder MenuStateImage.swift
[8/18] Compiling DSFMenuBuilder SeparatorItem.swift
[9/18] Compiling DSFMenuBuilder MenuItemTarget.swift
[10/18] Compiling DSFMenuBuilder NSMenuItemHighlightableView.swift
[11/18] Compiling DSFMenuBuilder ViewItem+NSViewController.swift
[12/18] Compiling DSFMenuBuilder MenuItem.swift
[13/18] 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
    |  `- note: main actor isolation inferred from inheritance from class 'NSViewController'
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 nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
 74 | 		self.init(title, vc)
 75 | 	}
/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/DSFMenuBuilder/menu-item-types/ViewItem.swift:73:6: warning: main actor-isolated property 'view' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
 74 | 		self.init(title, vc)
 75 | 	}
/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/DSFMenuBuilder/menu-item-types/ViewItem.swift:81:35: warning: main actor-isolated property 'view' can not be referenced from a nonisolated 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 nonisolated context; this is an error in the Swift 6 language mode
 82 | 		self.target.viewController = viewController
 83 | 	}
/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/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)
[14/18] Compiling DSFMenuBuilder AnyMenuItem.swift
[14/18] Write Objects.LinkFileList
[16/18] Archiving libDSFMenuBuilder-static.a
[17/18] Linking libDSFMenuBuilder-shared.dylib
Build complete! (10.28s)
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.