Game Center Authentication Crashing - Unity 6, Gamekit 3.0.2

When testing my development build for gamecenter authentication, the game crashes. I've breadcrumbed it to the "await GKLocalPlayer.Authenticate();" call. Can't find any documentation on this issue and have been looking through the forums!

I've already done all of the usual stuff like verifying bundle identifiers match, ensuring game center is enabled for the app, setting up app store connect, using a sandbox account, etc...

Please point me to some resources if you know any. Any help is appreciated, I'm starting to lose hope here!

Can you share the crash log?

Yes, the crash log should provide some helpful info.

Also,

  • What do you see in the console output window in Xcode when debugging your app and it crashes?
  • Do you see any clues in the Unity Editor console window if you have it attached to your app when it crashes?
  • Consider wrapping your call to GKLocalPlayer.Authenticate() in a try/catch because it can throw GameKitExceptions if an error occurs. Clues might be in those exceptions if any are being thrown.
Game Center Authentication Crashing - Unity 6, Gamekit 3.0.2
 
 
Q