For a simple, resourceless cocoa apps I used to manually setup the application lifecycle (mimicking what's documented here: https://developer.apple.com/documentation/appkit/nsapplication), so my main.swift would look like:
import Cocoa
let delegate = SomeDelegate()
_ = NSApplication.shared
NSApp.delegate = delegate
NSApp.run()
This triggers a warning in Xcode 26.2:
"Main actor-isolated conformance of SomeDelegate cannot be used in nonisolated context; this is an error in Swift 6 language mode".
so what is the recommended way to refactor above so that it is Swift 6 compliant?
0
0
63