Build Information
Failed to build DSFDockTile, reference 1.0.0 (921840
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 16:40:13 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dagronf/DSFDockTile.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dagronf/DSFDockTile
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 921840f Added privacy manifest, macOS min is now 10.13, SPM version 5.4
Cloned https://github.com/dagronf/DSFDockTile.git
Revision (git rev-parse @):
921840f138ece177c9c636958434d674d9d42d72
SUCCESS checkout https://github.com/dagronf/DSFDockTile.git at 1.0.0
Fetching https://github.com/dagronf/DSFImageFlipbook
[1/42] Fetching dsfimageflipbook
Fetched https://github.com/dagronf/DSFImageFlipbook from cache (0.65s)
Computing version for https://github.com/dagronf/DSFImageFlipbook
Computed https://github.com/dagronf/DSFImageFlipbook at 1.0.1 (0.66s)
Creating working copy for https://github.com/dagronf/DSFImageFlipbook
Working copy of https://github.com/dagronf/DSFImageFlipbook resolved at 1.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": "dsfdocktile",
"name": "DSFDockTile",
"url": "https://github.com/dagronf/DSFDockTile.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFDockTile",
"dependencies": [
{
"identity": "dsfimageflipbook",
"name": "DSFImageFlipbook",
"url": "https://github.com/dagronf/DSFImageFlipbook",
"version": "1.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DSFImageFlipbook",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/dagronf/DSFDockTile.git
[1/283] Fetching dsfdocktile
Fetched https://github.com/dagronf/DSFDockTile.git from cache (1.29s)
Fetching https://github.com/dagronf/DSFImageFlipbook from cache
Fetched https://github.com/dagronf/DSFImageFlipbook from cache (0.46s)
Computing version for https://github.com/dagronf/DSFImageFlipbook
Computed https://github.com/dagronf/DSFImageFlipbook at 1.0.1 (0.02s)
Creating working copy for https://github.com/dagronf/DSFImageFlipbook
Working copy of https://github.com/dagronf/DSFImageFlipbook resolved at 1.0.1
Creating working copy for https://github.com/dagronf/DSFDockTile.git
Working copy of https://github.com/dagronf/DSFDockTile.git resolved at 1.0.0 (921840f)
warning: '.resolve-product-dependencies': dependency 'dsfdocktile' is not used by any target
Found 1 product dependencies
- DSFImageFlipbook
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/dagronf/DSFDockTile.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[1/4] Copying PrivacyInfo.xcprivacy
[3/4] Write swift-version--7754E27361AE5C74.txt
[5/6] Emitting module DSFImageFlipbook
[6/6] Compiling DSFImageFlipbook DSFImageFlipbook.swift
[7/16] Compiling DSFDockTile DSFDockTile+ViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ViewController.swift:42:51: error: main actor-isolated default value in a nonisolated context
40 | /// - viewController: The viewController handling the view being displayed in the dock tile. This parameter is weakly held by this object, so it's important to make sure you hold onto this view controller outside the instance
41 | /// - dockTile: The docktile to update. By default, updates the application docktile.
42 | public init(_ viewController: NSViewController, dockTile: NSDockTile = NSApp.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
43 | self.viewController = viewController
44 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ViewController.swift:57:31: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | // Set view as docktile
48 | public func display() {
| `- note: add '@MainActor' to make instance method 'display()' part of global actor 'MainActor'
49 | precondition(Thread.isMainThread)
50 |
:
55 |
56 | // Make sure the docktile is showing our view
57 | if tile.contentView !== vc.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
58 | tile.contentView = vc.view
59 | }
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/DSFDockTile/DSFDockTile+ViewController.swift:58:27: warning: main actor-isolated property 'view' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
46 |
47 | // Set view as docktile
48 | public func display() {
| `- note: add '@MainActor' to make instance method 'display()' part of global actor 'MainActor'
49 | precondition(Thread.isMainThread)
50 |
:
56 | // Make sure the docktile is showing our view
57 | if tile.contentView !== vc.view {
58 | tile.contentView = vc.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
59 | }
60 |
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 }
[8/16] Compiling DSFDockTile resource_bundle_accessor.swift
[9/16] Compiling DSFDockTile DSFDockTile.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:32:20: warning: static property 'AppIcon' is not concurrency-safe because non-'Sendable' type 'DSFDockTile.AppIconType' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public class DSFDockTile {
31 | /// A docktile that represents the current application's icon
32 | public static let AppIcon = DSFDockTile.AppIconType()
| |- warning: static property 'AppIcon' is not concurrency-safe because non-'Sendable' type 'DSFDockTile.AppIconType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'AppIcon' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// Set the badge label to be displayed on the application's docktile
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Core.swift:52:15: note: class 'AppIconType' does not conform to the 'Sendable' protocol
50 | extension DSFDockTile {
51 | /// A docktile object that displays the default docktile content.
52 | public class AppIconType: Core {
| `- note: class 'AppIconType' does not conform to the 'Sendable' protocol
53 |
54 | public override init(dockTile: NSDockTile? = NSApp?.dockTile) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Core.swift:54:24: error: main actor-isolated default value in a nonisolated context
52 | public class AppIconType: Core {
53 |
54 | public override init(dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
55 | super.init(dockTile: dockTile)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:45:64: error: main actor-isolated default value in a nonisolated context
43 |
44 | /// Set the badge label to be displayed on a provided docktile
45 | @inlinable public static func setBadgeLabel(_ label: String?, dockTile: NSDockTile? = NSApp.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
46 | dockTile?.badgeLabel = label
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:37:10: warning: main actor-isolated property 'dockTile' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | public static var badgeLabel: String? {
36 | get {
37 | NSApp.dockTile.badgeLabel
| `- warning: main actor-isolated property 'dockTile' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 | set {
AppKit.NSApplication:81:25: note: property declared here
79 | open func setActivationPolicy(_ activationPolicy: NSApplication.ActivationPolicy) -> Bool
80 | @available(macOS 10.5, *)
81 | @MainActor open var dockTile: NSDockTile { get }
| `- note: property declared here
82 | open func reportException(_ exception: NSException)
83 | open class func detachDrawingThread(_ selector: Selector, toTarget target: Any, with argument: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:37:4: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
35 | public static var badgeLabel: String? {
36 | get {
37 | NSApp.dockTile.badgeLabel
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 | set {
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:40:10: warning: main actor-isolated property 'dockTile' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 | set {
40 | NSApp.dockTile.badgeLabel = newValue
| `- warning: main actor-isolated property 'dockTile' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
41 | }
42 | }
AppKit.NSApplication:81:25: note: mutation of this property is only permitted within the actor
79 | open func setActivationPolicy(_ activationPolicy: NSApplication.ActivationPolicy) -> Bool
80 | @available(macOS 10.5, *)
81 | @MainActor open var dockTile: NSDockTile { get }
| `- note: mutation of this property is only permitted within the actor
82 | open func reportException(_ exception: NSException)
83 | open class func detachDrawingThread(_ selector: Selector, toTarget target: Any, with argument: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:40:4: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
38 | }
39 | set {
40 | NSApp.dockTile.badgeLabel = newValue
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
41 | }
42 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:50:9: warning: main actor-isolated property 'dockTile' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 |
49 | func reset() {
| `- note: add '@MainActor' to make instance method 'reset()' part of global actor 'MainActor'
50 | NSApp.dockTile.contentView = nil
| `- warning: main actor-isolated property 'dockTile' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 | }
AppKit.NSApplication:81:25: note: mutation of this property is only permitted within the actor
79 | open func setActivationPolicy(_ activationPolicy: NSApplication.ActivationPolicy) -> Bool
80 | @available(macOS 10.5, *)
81 | @MainActor open var dockTile: NSDockTile { get }
| `- note: mutation of this property is only permitted within the actor
82 | open func reportException(_ exception: NSException)
83 | open class func detachDrawingThread(_ selector: Selector, toTarget target: Any, with argument: Any?)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:50:3: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 |
49 | func reset() {
| `- note: add '@MainActor' to make instance method 'reset()' part of global actor 'MainActor'
50 | NSApp.dockTile.contentView = nil
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
51 | }
52 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/16] Emitting module DSFDockTile
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Animation.swift:52:7: error: main actor-isolated default value in a nonisolated context
50 | /// - dockTile: The docktile to update
51 | public init(_ flipbook: DSFImageFlipbook,
52 | dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
53 | self.flipbook = flipbook
54 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Animation.swift:63:4: error: main actor-isolated default value in a nonisolated context
61 | public init?(
62 | animatedImageData: Data,
63 | dockTile: NSDockTile? = NSApp?.dockTile)
| `- error: main actor-isolated default value in a nonisolated context
64 | {
65 | let fb = DSFImageFlipbook()
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:46:10: warning: call to main actor-isolated instance method 'cancelUserAttentionRequest' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | /// Cancels a previous user attention request.
45 | @inlinable public func cancel() {
| `- note: add '@MainActor' to make instance method 'cancel()' part of global actor 'MainActor'
46 | NSApp.cancelUserAttentionRequest(self.identifier)
| `- warning: call to main actor-isolated instance method 'cancelUserAttentionRequest' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | }
AppKit.NSApplication:62:26: note: calls to instance method 'cancelUserAttentionRequest' from outside of its actor context are implicitly asynchronous
60 | open func terminate(_ sender: Any?)
61 | open func requestUserAttention(_ requestType: NSApplication.RequestUserAttentionType) -> Int
62 | @MainActor open func cancelUserAttentionRequest(_ request: Int)
| `- note: calls to instance method 'cancelUserAttentionRequest' from outside of its actor context are implicitly asynchronous
63 | @available(macOS 10.12, *)
64 | open func enumerateWindows(options: NSApplication.WindowListOptions = [], using block: (NSWindow, UnsafeMutablePointer<ObjCBool>) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:46:4: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | /// Cancels a previous user attention request.
45 | @inlinable public func cancel() {
| `- note: add '@MainActor' to make instance method 'cancel()' part of global actor 'MainActor'
46 | NSApp.cancelUserAttentionRequest(self.identifier)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:58:30: warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest)
56 | @discardableResult
57 | @inlinable static func requestCriticalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestCriticalAttention()' part of global actor 'MainActor'
58 | return UserAttention(NSApp.requestUserAttention(.criticalRequest))
| `- warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 |
AppKit.NSApplication:61:15: note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
59 | open func endModalSession(_ session: NSApplication.ModalSession)
60 | open func terminate(_ sender: Any?)
61 | open func requestUserAttention(_ requestType: NSApplication.RequestUserAttentionType) -> Int
| `- note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
62 | @MainActor open func cancelUserAttentionRequest(_ request: Int)
63 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:58:24: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
55 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest)
56 | @discardableResult
57 | @inlinable static func requestCriticalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestCriticalAttention()' part of global actor 'MainActor'
58 | return UserAttention(NSApp.requestUserAttention(.criticalRequest))
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:67:30: warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest)
65 | @discardableResult
66 | @inlinable static func requestInformationalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestInformationalAttention()' part of global actor 'MainActor'
67 | return UserAttention(NSApp.requestUserAttention(.informationalRequest))
| `- warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 | }
AppKit.NSApplication:61:15: note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
59 | open func endModalSession(_ session: NSApplication.ModalSession)
60 | open func terminate(_ sender: Any?)
61 | open func requestUserAttention(_ requestType: NSApplication.RequestUserAttentionType) -> Int
| `- note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
62 | @MainActor open func cancelUserAttentionRequest(_ request: Int)
63 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:67:24: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest)
65 | @discardableResult
66 | @inlinable static func requestInformationalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestInformationalAttention()' part of global actor 'MainActor'
67 | return UserAttention(NSApp.requestUserAttention(.informationalRequest))
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ConstantImage.swift:39:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
37 |
38 | // A lazy imageview to use when displaying images
39 | private let _imageDisplayView: NSImageView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
40 | let v = NSImageView()
41 | v.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ConstantImage.swift:50:33: error: main actor-isolated default value in a nonisolated context
48 | /// - image: The image to initially display when creating this instance
49 | /// - dockTile: The docktile to update. By default, updates the application docktile.
50 | public init(_ image: NSImage, dockTile: NSDockTile = NSApp.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
51 | self.image = image
52 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Core.swift:44:17: error: main actor-isolated default value in a nonisolated context
42 | }
43 |
44 | internal init(dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
45 | self.dockTile = dockTile
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Core.swift:54:24: error: main actor-isolated default value in a nonisolated context
52 | public class AppIconType: Core {
53 |
54 | public override init(dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
55 | super.init(dockTile: dockTile)
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Image.swift:38:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | // A lazy imageview to use when displaying images
38 | private let _imageDisplayView: NSImageView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
39 | let v = NSImageView()
40 | v.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Image.swift:49:40: error: main actor-isolated default value in a nonisolated context
47 | /// - image: (optional) The image to initially display when creating this instance
48 | /// - dockTile: The docktile to update. By default, updates the application docktile.
49 | public init(_ image: NSImage? = nil, dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
50 | self.image = image
51 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ViewController.swift:42:51: error: main actor-isolated default value in a nonisolated context
40 | /// - viewController: The viewController handling the view being displayed in the dock tile. This parameter is weakly held by this object, so it's important to make sure you hold onto this view controller outside the instance
41 | /// - dockTile: The docktile to update. By default, updates the application docktile.
42 | public init(_ viewController: NSViewController, dockTile: NSDockTile = NSApp.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
43 | self.viewController = viewController
44 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:32:20: warning: static property 'AppIcon' is not concurrency-safe because non-'Sendable' type 'DSFDockTile.AppIconType' may have shared mutable state; this is an error in the Swift 6 language mode
30 | public class DSFDockTile {
31 | /// A docktile that represents the current application's icon
32 | public static let AppIcon = DSFDockTile.AppIconType()
| |- warning: static property 'AppIcon' is not concurrency-safe because non-'Sendable' type 'DSFDockTile.AppIconType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'AppIcon' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 |
34 | /// Set the badge label to be displayed on the application's docktile
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Core.swift:52:15: note: class 'AppIconType' does not conform to the 'Sendable' protocol
50 | extension DSFDockTile {
51 | /// A docktile object that displays the default docktile content.
52 | public class AppIconType: Core {
| `- note: class 'AppIconType' does not conform to the 'Sendable' protocol
53 |
54 | public override init(dockTile: NSDockTile? = NSApp?.dockTile) {
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile.swift:45:64: error: main actor-isolated default value in a nonisolated context
43 |
44 | /// Set the badge label to be displayed on a provided docktile
45 | @inlinable public static func setBadgeLabel(_ label: String?, dockTile: NSDockTile? = NSApp.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
46 | dockTile?.badgeLabel = label
47 | }
[11/16] Compiling DSFDockTile DSFDockTile+Attention.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:46:10: warning: call to main actor-isolated instance method 'cancelUserAttentionRequest' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | /// Cancels a previous user attention request.
45 | @inlinable public func cancel() {
| `- note: add '@MainActor' to make instance method 'cancel()' part of global actor 'MainActor'
46 | NSApp.cancelUserAttentionRequest(self.identifier)
| `- warning: call to main actor-isolated instance method 'cancelUserAttentionRequest' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | }
AppKit.NSApplication:62:26: note: calls to instance method 'cancelUserAttentionRequest' from outside of its actor context are implicitly asynchronous
60 | open func terminate(_ sender: Any?)
61 | open func requestUserAttention(_ requestType: NSApplication.RequestUserAttentionType) -> Int
62 | @MainActor open func cancelUserAttentionRequest(_ request: Int)
| `- note: calls to instance method 'cancelUserAttentionRequest' from outside of its actor context are implicitly asynchronous
63 | @available(macOS 10.12, *)
64 | open func enumerateWindows(options: NSApplication.WindowListOptions = [], using block: (NSWindow, UnsafeMutablePointer<ObjCBool>) -> Void)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:46:4: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
43 |
44 | /// Cancels a previous user attention request.
45 | @inlinable public func cancel() {
| `- note: add '@MainActor' to make instance method 'cancel()' part of global actor 'MainActor'
46 | NSApp.cancelUserAttentionRequest(self.identifier)
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
47 | }
48 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:58:30: warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
55 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest)
56 | @discardableResult
57 | @inlinable static func requestCriticalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestCriticalAttention()' part of global actor 'MainActor'
58 | return UserAttention(NSApp.requestUserAttention(.criticalRequest))
| `- warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 |
AppKit.NSApplication:61:15: note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
59 | open func endModalSession(_ session: NSApplication.ModalSession)
60 | open func terminate(_ sender: Any?)
61 | open func requestUserAttention(_ requestType: NSApplication.RequestUserAttentionType) -> Int
| `- note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
62 | @MainActor open func cancelUserAttentionRequest(_ request: Int)
63 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:58:24: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
55 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/criticalrequest)
56 | @discardableResult
57 | @inlinable static func requestCriticalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestCriticalAttention()' part of global actor 'MainActor'
58 | return UserAttention(NSApp.requestUserAttention(.criticalRequest))
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
59 | }
60 |
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:67:30: warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
64 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest)
65 | @discardableResult
66 | @inlinable static func requestInformationalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestInformationalAttention()' part of global actor 'MainActor'
67 | return UserAttention(NSApp.requestUserAttention(.informationalRequest))
| `- warning: call to main actor-isolated instance method 'requestUserAttention' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 | }
AppKit.NSApplication:61:15: note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
59 | open func endModalSession(_ session: NSApplication.ModalSession)
60 | open func terminate(_ sender: Any?)
61 | open func requestUserAttention(_ requestType: NSApplication.RequestUserAttentionType) -> Int
| `- note: calls to instance method 'requestUserAttention' from outside of its actor context are implicitly asynchronous
62 | @MainActor open func cancelUserAttentionRequest(_ request: Int)
63 | @available(macOS 10.12, *)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Attention.swift:67:24: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
64 | /// See:- [https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest](https://developer.apple.com/documentation/appkit/nsapplication/requestuserattentiontype/informationalrequest)
65 | @discardableResult
66 | @inlinable static func requestInformationalAttention() -> DSFDockTileUserAttentionCancellation {
| `- note: add '@MainActor' to make static method 'requestInformationalAttention()' part of global actor 'MainActor'
67 | return UserAttention(NSApp.requestUserAttention(.informationalRequest))
| `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
68 | }
69 | }
AppKit.NSApp:1:23: note: var declared here
1 | @MainActor public var NSApp: NSApplication!
| `- note: var declared here
[12/16] Compiling DSFDockTile DSFDockTile+SwiftUI.swift
[13/16] Compiling DSFDockTile DSFDockTile+Image.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Image.swift:38:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
36 |
37 | // A lazy imageview to use when displaying images
38 | private let _imageDisplayView: NSImageView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
39 | let v = NSImageView()
40 | v.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Image.swift:49:40: error: main actor-isolated default value in a nonisolated context
47 | /// - image: (optional) The image to initially display when creating this instance
48 | /// - dockTile: The docktile to update. By default, updates the application docktile.
49 | public init(_ image: NSImage? = nil, dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
50 | self.image = image
51 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Image.swift:84:14: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
71 | /// Set image as docktile
72 | /// - Parameter nsImage: The image to display in the docktile
73 | public func display(_ nsImage: NSImage) {
| `- note: add '@MainActor' to make instance method 'display' part of global actor 'MainActor'
74 | self.image = nsImage
75 | precondition(Thread.isMainThread)
:
82 |
83 | // Update the image view with the new image
84 | imageView.image = nsImage
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
85 |
86 | // If we aren't already being displayed, then make sure to update the content view
AppKit.NSImageView:7:25: note: mutation of this property is only permitted within the actor
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | @MainActor open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
[14/16] Compiling DSFDockTile DSFDockTile+Animation.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Animation.swift:52:7: error: main actor-isolated default value in a nonisolated context
50 | /// - dockTile: The docktile to update
51 | public init(_ flipbook: DSFImageFlipbook,
52 | dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
53 | self.flipbook = flipbook
54 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Animation.swift:63:4: error: main actor-isolated default value in a nonisolated context
61 | public init?(
62 | animatedImageData: Data,
63 | dockTile: NSDockTile? = NSApp?.dockTile)
| `- error: main actor-isolated default value in a nonisolated context
64 | {
65 | let fb = DSFImageFlipbook()
[15/16] Compiling DSFDockTile DSFDockTile+Core.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Core.swift:44:17: error: main actor-isolated default value in a nonisolated context
42 | }
43 |
44 | internal init(dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
45 | self.dockTile = dockTile
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+Core.swift:54:24: error: main actor-isolated default value in a nonisolated context
52 | public class AppIconType: Core {
53 |
54 | public override init(dockTile: NSDockTile? = NSApp?.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
55 | super.init(dockTile: dockTile)
56 | }
[16/16] Compiling DSFDockTile DSFDockTile+ConstantImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ConstantImage.swift:39:15: warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
37 |
38 | // A lazy imageview to use when displaying images
39 | private let _imageDisplayView: NSImageView = {
| `- warning: main actor-isolated default value in a nonisolated context; this is an error in the Swift 6 language mode
40 | let v = NSImageView()
41 | v.wantsLayer = true
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ConstantImage.swift:50:33: error: main actor-isolated default value in a nonisolated context
48 | /// - image: The image to initially display when creating this instance
49 | /// - dockTile: The docktile to update. By default, updates the application docktile.
50 | public init(_ image: NSImage, dockTile: NSDockTile = NSApp.dockTile) {
| `- error: main actor-isolated default value in a nonisolated context
51 | self.image = image
52 | super.init(dockTile: dockTile)
/Users/admin/builder/spi-builder-workspace/Sources/DSFDockTile/DSFDockTile+ConstantImage.swift:55:27: warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
53 |
54 | // Set the image
55 | self._imageDisplayView.image = image
| `- warning: main actor-isolated property 'image' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
56 | }
57 |
AppKit.NSImageView:7:25: note: mutation of this property is only permitted within the actor
5 | @available(*, unavailable, renamed: "init(image:)", message: "Not available in Swift")
6 | open class func imageViewWithImage(_ image: NSImage) -> Self
7 | @MainActor open var image: NSImage? { get set }
| `- note: mutation of this property is only permitted within the actor
8 | open var isEditable: Bool { get set }
9 | @available(swift, obsoleted: 3, renamed: "isEditable")
BUILD FAILURE 6.0 macosSpm