I have the same error with this simple code :
DispatchQueue.global().async {
// some code
DispatchQueue.main.async {
// some code
NSAlert.init(error: ...... ).runModal()
}
}
The answer given by the apple employee here https://developer.apple.com/forums/thread/88825 do not fix the problem.
I am using Xcode 13.3 with macOS 12.3
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: