Post

Replies

Boosts

Views

Created

There are 2 different results between Xcode 15 and Xcode 16
I have an macOS Application that communication with USB devices. There are 2 different results between Xcode 15 and Xcode 16. Do I forget somethings in Xcode 16? Results Xcode 15: It works very well Xcode 16: USB communication error occurred. If I try to modify Instrument's openUSB() function to func openUSB() { sleep(1) . . . } It works very well. My Application code class AppDelegate: NSObject, NSApplicationDelegate { override init() { super.init() _ = Controller.shared } ... } class Controller: NSObject { public static let shared = Controller() public private(set) var instrument: Instrument private override init() { super.init() self.instrument = Instrument() } } class Instrument: NSObject { override init() { super.init() openUSB() } func openUSB() { . . . } }
0
0
170
Oct ’24
There are 2 different results between Xcode 15 and Xcode 16
I have an macOS Application that communication with USB devices. There are 2 different results between Xcode 15 and Xcode 16. Do I forget somethings in Xcode 16? Results Xcode 15: It works very well Xcode 16: USB communication error occurred. If I try to modify Instrument's openUSB() function to func openUSB() { sleep(1) . . . } It works very well. My Application code class AppDelegate: NSObject, NSApplicationDelegate { override init() { super.init() _ = Controller.shared } ... } class Controller: NSObject { public static let shared = Controller() public private(set) var instrument: Instrument private override init() { super.init() self.instrument = Instrument() } } class Instrument: NSObject { override init() { super.init() openUSB() } func openUSB() { . . . } }
Replies
0
Boosts
0
Views
170
Activity
Oct ’24
Could you provide more SwiftUI documents and samples for macOS?
Ex: Control between windows (main window, key window, new a window, close a window.) Response chain System menu bar Context menu in view OutlineView(like NSOutlineView)
Replies
0
Boosts
0
Views
375
Activity
Jun ’21