- Home /
GameCenter crash only in release build
The app runs great from XCode, no errors.
I make an archive. I make an ad-hoc build, run the IPA, no errors.
I use the same archive to upload to the app store. It crashes on GameCenter login. The report is in the image below. (String_Concat_m2596509543)
Any ideas what may be going on here?
Additional info: on the first release of the app, I forgot to enable GameCenter Capabilities (it used to be on by default). It ran fine from XCode, but the ad-hoc IPA crashed. In this version, it is enabled, and the IPA works.
Answer by Oana · Jun 06, 2017 at 10:46 AM
I may have figured it out.
When calling Social.localUser.Authenticate, you have 2 possible callback methods (both work on Android and in XCode), according to the documentation:
public void Authenticate(Action<bool> callback);
public void Authenticate(Action<bool,string> callback);
Using the 2nd will cause the crash when released on the App Store if authentication is successful. Using the first works without any problems.
Your answer
![](https://koobas.hobune.stream/wayback/20220612122917im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help with XCode iOS GameCenter EXC_BAD_ACCESS crash bug 1 Answer
iOS Gamecenter Apple Mach-O Linker errors in xcode build 1 Answer
Gamecenter achievement already reported 1 Answer
App size increased when ported to IOS 0 Answers
iOS Build Integer literal is too large to be represented in a signed integer type 0 Answers