Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9075525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:52:40+00:00 2026-06-16T18:52:40+00:00

I am running Xcode 4.3.3 and am targeting iOS 5.1. I am attempting to

  • 0

I am running Xcode 4.3.3 and am targeting iOS 5.1. I am attempting to include Game Center functionality in a game.

When authenticating the GKLocalPlayer the user is presented with the Sign in to Game Center alert view or shown to be logged in. So far this is all fine, but if the user presses the Create New Account button then any open modal views are moved behind the root view controller and the following error is spit from the console:

Unbalanced calls to begin/end appearance transitions for
<GKModalRootViewController: memory address>.

I have tried moving the GKLocalPlayer authentication code between the app delegate and the root view controller. I have also tried implementing the authentication in a new, blank project. I have tried it with and without Storyboards and ARC. In all of these cases the results were the same: modals hidden behind the root view controller and error given.

Here is the GKLocalPlayer authentication method I am calling from my app delegate’s application:didFinishLaunchingWithOptions: method:

- (void)authenticateLocalPlayer
{
    GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
    [localPlayer authenticateWithCompletionHandler:^(NSError *error) {
        if (localPlayer.isAuthenticated) {
            // Perform additional tasks for the authenticated player.
        } else {
            // Disable Game Center features.
        }
        if (error) {
            // Handle error.
        }
    }];
}

Here is a screenshot of it. In this picture the root view controller has a background with a 50% alpha value. The modal has been pushed behind the root view controller by this bug.

This stackoverflow question contains the only reference to this error (regarding GKModalRootViewController) I can find, and it doesn’t fit since (a.) I’m not using cocos2d. (b.) It happens whether or not I perform a segue, and I am not touching viewWillAppear: or viewDidAppear:. (c.) No acceptable answer was given.

This question and this one seem to involve the same issue (with the view hierarchy being destroyed) but are unanswered and don’t mention the console error message.

Does this happen for anyone else? Any ideas on what could be causing this?

UPDATE 1: I went so far as to put the authentication code into an IBAction connected to a button in the modal view so as to avoid any initialization conflicts. It didn’t help.

UPDATE 2: I tried moving the authentication code into a GCD background queue. he results were the same.

Here is the test project (which is GameCenter ready with my app’s Bundle ID already entered).

To test:

  1. Log out of Game Center on the test device/simulator (if you are
    logged in).
  2. Build and run the app.
  3. Press the info button.
  4. Press Authenticate.
  5. When the Sign in to Game Center alert appears press Create New
    Account
    .
  6. Press Cancel.
  7. Did the “Unbalanced calls…” message appear in the console? Did the
    modal view (with the Authenticate button) disappear?
  8. Press the info button.
  9. Did the modal display again?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:52:41+00:00Added an answer on June 16, 2026 at 6:52 pm

    This bug appears on the list of “bugs Apple fixed in 6.0”. I understand you would love a workaround, but when its the APIs you depend on that are buggy, chances of that are slim.

    You can however rejoice that 5.x users are slowly dying out.

    Best of luck with your app.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running in Xcode 4.3.3 an iOS project with some C++ classes. When I
I'm running Xcode 3.2.3 with the iOS 4.0 SDK. I built my app with
I'm trying to use ios-cmake to generate Xcode project targeting iOS. However, it cannot
I am running Xcode 4.2 with an imported IOS 6 SDK (older Mac incapable
I'm running Xcode 4.4.1 and building an iOS app. My app is crashing and
I'm running xcode 4.5.2 to write an iOS app for both iphone & ipad
I am running xcode 4.3.2 and just started having the following problem. All projects
I am running Xcode 4.3.3 on the new Macbook Retina and out of the
My app was crashing only when not running using XCode debugger. It was hard
I want to make a function that is always running in xcode similar to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.