The codes to integrate with Apple GameCenter via Native Extension is very straightforward. Personally I love the cloud build for native extension.
I’m implementing Game Center authentication feature for OSX. I’ve already got the Game Center login window. However, when entering my apple id account, the game halts when I tried to login.
https://s10.postimg.org/q8tymadm1/Screen_Shot_2017-07-18_at_12.00.45_AM.png
Not sure if it is a code sign problem or b/c of the View Controller used to present the authentication Controller as it’s not able to have an instance of the rootViewController as normal application.
Below is the code getting the view controller :
NSViewController *controller = [NSApplication sharedApplication].keyWindow.contentViewController;