How do I use Apple's GameController framework from a macOS Command Line Tool?
问题 I'm trying to get the following code to work as a macOS command line tool. It is important that this not be a Cocoa app, so that is not an option. This same code works perfectly in the same project with a Cocoa App target and detects a compatible controller, but when run as a Command Line Tool target, nothing happens and the API shows no controllers connected. Obviously, some of it is contrived... it's just the simplest I could boil it down to and have some indication of things happening when