IOS GameCenter crash on release

Hi.

After releasing a game on App Store we noticed some users reported crashing. It turns out it happens only when attemtping to log in to GameCenter. We are using some of the blueprints to gather data from GameCenter( uch as Read Friends) + some functionality to use the native GC window ( leaderboards, achievements). The tricky part is the crashes are not reproducible in sandbox - they only happen on live app and only to some users.

Did anyone encounter anything similar?

Hi Zimo,

Unfortunately this is something of a sticky issue to try and reproduce because Game Center can sometimes be unreliable, and because your shipped user version can’t provide crash logs. Are you able to reproduce this crash with a development version on a device, at all?

That’s exactly the problem. We weren’t able to reproduce this issue on development version at all. Even if the store version would crash on the same device.

Try creating a test build of your game and seeing if that fails on the same device. A test build has limited logging and is very similar to the shipping build. If that doesn’t fail, then you can try a local build of the shipping and see if that fails. If so, then you can make calls to NSLog around the code which tries to access Game Center and potentially get some more information.

-Pete

Hey, thanks for the answer. I misspoke in earlier reply. What i meant, is we tested shipping(and development) build on a device, but it still resulted in no crashes. The only difference between this one and one on App Store is that the App Store one is signed by apple so it has access to normal GameCenter, while everything you build locally is locked to Sandbox.

But i have one more question: did you get reports of GC crashes while using only your code/blueprints (such as ReadFriends)? I’m asking because we added a bit of our code, that acts similarly but gets more info from GC, and i’m trying to narrow the possibilities.

Hello,

Basically this crash occurs for over 50% of iOS users :frowning:

We are not able to track it because everything is working well in development/game center sandbox. It only occurs in live product.

I will be really grateful if you guys can check out the source (I’ve sent whole project to you guys) and try to help with resolving this issue!

Best!

Hello guys, Same thing happen with my App, Framework is Sprite kit and it connects to game center (live server) on didloadview.

I change setting back and forth until it works, I still do not know what fixed.

  • Logo off from Game Center
  • Log off from App Store
  • Login to Game Center with the same apple ID used to buy the App
  • Login to Game Center with a different apple ID
  • Change Game Center alias name
  • Play game from within the game Center Button [ … ]

I did this in not particular order trying to avoid the crash and suddenly I works.
I’m still frustrated because I still do not know why is crashing

That is correct this intermittent Issue do not affect to all users cause I can see people on the Leaderboard with points.

This crash happen to user with or without Jail-broken devices.

Hello Guys,
This works for me.

I followed Apple instructions how to get Crashes from the App Store for my App:

https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AnalyzingCrashReports/AnalyzingCrashReports.html

“Open in Project” took me to the line when the App Crashes.
Aha! I was reading the leaderboard that was nil and casting as Int !!!
After adding a if ( THIS != nil ) { } The App do not crash anymore

I notice that when there is not value on the leaderboard GameCenter says “Not ranked” meaning the value is nil

I hope this help.
Thanks

Thanks for the tip, we also think it might be related to leaderboards, gonna check that out!