Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

*Crash Bug* XCode iOS GameCenter EXC_BAD_ACCESS

Discussion in 'iOS and tvOS' started by brentstrandy, Sep 18, 2015.

  1. brentstrandy

    brentstrandy

    Joined:
    Aug 16, 2012
    Posts:
    5
    I'm running into a crash bug when attempting to play my game on an iPhone. This one has me totally stumped. Any help would be really appreciated!
    Here is what I know:
    - Details: iOS 9, XCode 7, Unity 5.2.0f3
    - The crash does not happen when running the game in Unity.
    - The crash only happens when I instantiate GameCenter
    Social.localUser.Authenticate (ProcessAuthentication);
    - When I comment out this line of code the game runs fine.
    - This is a new version of an already released iOS game.

    Screenshot of error message:
    Screen Shot 2015-09-18 at 1.32.52 PM.png

    Screenshot of Libraries used:
    Screen Shot 2015-09-18 at 2.33.52 PM.png
     
  2. MackNugget

    MackNugget

    Joined:
    Dec 4, 2012
    Posts:
    40
    Having the same problem. Have you made any progress?
     
  3. DrWypeout

    DrWypeout

    Joined:
    Apr 23, 2015
    Posts:
    2
    Running into the same issue. Will update if I find a fix.
     
  4. Time-Jockey

    Time-Jockey

    Joined:
    Oct 11, 2012
    Posts:
    14
    Having the exact same problem :/
     
  5. Time-Jockey

    Time-Jockey

    Joined:
    Oct 11, 2012
    Posts:
    14
    My problem is slightly different, I get the exact same error, but I call "Social.Active.Authenticate"
     
  6. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    We have an existing bug and a fix for this issue. It is a bad interaction between Unity Ads and iOS GameCenter. The easiest work around is to disable Unity Ads in the editor and instead use the asset store package. We're planning to have the fix for this in the next 5.2 patch release.
     
    TDMIsh and brentstrandy like this.
  7. Bruno Vaz

    Bruno Vaz

    Joined:
    Aug 11, 2015
    Posts:
    1
    We also have this problem, even after updating to 5.2.1p2.
     
  8. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    @Bruno Vaz

    Unfortunately we did not get this fix in for the 5.2.1p2 release. It is however in the 5.2.1p3 release, which should be out within the next day or two, I think.
     
  9. cavila

    cavila

    Joined:
    Jun 4, 2013
    Posts:
    67
    Version 5.2.1p3 fixed this issue for me.
     
  10. alti

    alti

    Joined:
    Jan 8, 2014
    Posts:
    94
    I am getting this same error (under the same scenario) in Unity 5.2.1f1 Personal edition.

    I finally decided to type randomly into google "unity xcode crash after game center sign on" and I found this post. I'm a little jealous it's working for cavila and not me. It's very suspicious because I submitted and then developer removed my project last night, and after, 0 changes to anything related to game center and unity ads, this issue springs up and destroys (easily) 10 hours of my day (from building in xcode and unity, and transferring the project from my pc and so on) with surely more to come.

    I checked the unity website for the latest downloads, and it looks like what I have is indeed the latest. (f1).

    Seriously, this is cruel.

    **edit
    Just discovered that P doesn't stand professional (as F I woulda assumed stood for free), but rather "patch" ? Regardless, I've discovered Unity releases patches, yet still allows people to download a dated version with known issues. Isn't there something just a little bit fundamentally hysterical about that? I mean, especially since the download for this "patch" is the same size as the actual program with the known problems? I can't for the life of me discover the mindset behind this. It might be because my brain is embarrassingly fried because of the issues this has caused me for, count em, over 12 hours straight. And if I'm wrong, then 2.34GB of data is large for a patch.
     
    Last edited: Oct 20, 2015
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    @alti

    I'm glad you discovered the patch releases. We've worked on a few different ways in the past to better ship patch releases in smaller sizes, but we've not found anything reliable. So the release is a patch in the sense that it is a small change from the previous patch or feature release, but the download is the entire thing.
     
  12. alti

    alti

    Joined:
    Jan 8, 2014
    Posts:
    94
    I got the patch. It fixed the problem. When first opening xcode I was shown: unexpected code bundle "unity4xc.xcplugin"
    I loaded it (going against the default option btw), and everything works fine again. Gotta love spending a day solving unknown issues that are not your fault. Not frustrating at all. It surely never instigates passive aggressive comments either.
     
  13. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,920
    @alti

    The unexpected code bundle "unity4xc.xcplugin" error is one I've seen before as well. I think it has something to do with the a version mismatch in the Xcode project. I've been told by our iOS team that choose to load the bundle is correct, and the error is benign.