Error logging into Game Center

  • Bug Me Games
    Likes 0

    Problem Description

    I am getting the following error in iOSHelper.m gameCenterLogin when running on an iPod Touch:


    2016-03-09 10:24:30.186 MyGame[3159:907] -[GKPlayerInternal loadDefaultLeaderboardIdentifierWithCompletionHandler:]: unrecognized selector sent to instance 0x1e571ce0
    2016-03-09 10:24:30.190 MyGame[3159:907] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GKPlayerInternal loadDefaultLeaderboardIdentifierWithCompletionHandler:]: unrecognized selector sent to instance 0x1e571ce0'
    *** First throw call stack:
    (0x31b362a3 0x397b697f 0x31b39e07 0x31b38531 0x31a8ff68 0x316b87 0x39bce11f 0x39bcd4b7 0x39bcedcb 0x31b09f3b 0x31a7cebd 0x31a7cd49 0x3562f2eb 0x33992301 0x2266fb 0x39bedb20)
    libc++abi.dylib: terminate called throwing an exception
    Signal: SIGABRT (signal SIGABRT)

     

    Sometimes I get this first:
    2016-03-09 10:30:52.608 MyGame[3176:6203] url queue underflow.

     

    Any idea what is going on? I am logged into game center using a sandbox id, the same sandbox id that is working on my iPad Mini 2.

     

  • Sonar Systems admin
    Likes 0

    Have you followed the setup video?

  • Bug Me Games
    Likes 0

    Yes. It is working correctly on an iPad Mini 2.

  • Sonar Systems admin
    Likes 0

    So is this issue solved now?

  • Bug Me Games
    Likes 0

    No, this issue is on going. I have tested it on an iPad Mini 2 and on an iPod Touch. The error comes from an iPod Touch and happens every time. There are no errors on the iPad.

  • Sonar Systems admin
    Likes 0

    what iPod touch and iOS version is it?

  • Bug Me Games
    Likes 0

    It’s an 8GB iPod Touch model MC540LL/A with version 6.1.6 (10B500) running on it.

  • Bug Me Games
    Likes 0

    That didn’t work but I have more info. The method being called is crossed out in iOSHelper.m in JetBrains AppCode and it gives this message when you roll over it:

    Method ‘loadDefaultLeaderboardIdentifierWithCompletionHandler:’ is not available for the deployment target 6.0 in ‘MyGame-mobile’

     

  • Sonar Systems admin
    Likes 0

    It should work with the newer devices, most of the devices out their should be supported. Just test in a simulator.

  • Bug Me Games
    Likes 0

    So it does not support iPod Touch running iOS 6.1.6? I have other games on it that work with the Game Center.

  • Sonar Systems admin
    Likes 0

    It would appear not.

     

    But most devices/players will be target with newer versions so no need to worry.

Login to reply