Or maybe there's some internal trigger that initializes the GameController framework.
I'm guessing it's got something to do with how the Cocoa application sets up or the event loops are handled. [center addObserverForName: GCControllerDidConnectNotification Int main( int argc, const char * argv * application =
it's just the simplest I could boil it down to and have some indication of things happening when it actually works. 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. It is important that this not be a Cocoa app, so that is not an option. I'm trying to get the following code to work as a macOS command line tool.