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 8589029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:56:46+00:00 2026-06-11T22:56:46+00:00

My app keeps a record of whether it’s successfully authenticated with Game Center. When

  • 0

My app keeps a record of whether it’s successfully authenticated with Game Center. When it starts a new game or when the user looks at the score list, if a local player hasn’t been successfully authenticated, and if the app isn’t in the middle of trying to authenticate a user at the time, it tries again.

(Why? In case you’ve moved from a no-network zone to a network zone.)

Unfortunately, under iOS6/XCode 4.5, it’s started crashing. Or at least it seems to in certain limited circumstances: when a user fails to log in with a bad password and/or an account that doesn’t exist. On a successful login, all is well.

After that unsuccessful login, when I go and do something that causes a reauth check to occur I get this:

2012-09-25 15:54:47.829 APP NAME [1493:907] *
Assertion failure in -[UIWindowController
transition:fromViewController:toViewController:target:didEndSelector:],
/SourceCache/UIKit/UIKit-2372/UIWindowController.m:211

Then this actually crashes:

2012-09-25 15:55:25.569 APP NAME [1493:907] *
Terminating app due to uncaught exception
‘NSInternalInconsistencyException’, reason: ‘Attempting to begin a
modal transition from <GKModalRootViewController: 0x1cd8b2a0> to
<GKHostedAuthenticateViewController: 0x1e31a350> while a transition is
already in progress. Wait for viewDidAppear/viewDidDisappear to know
the current transition has completed’
*
First throw call stack: (0x394932a3 0x31db297f 0x3949315d 0x383fd2af 0x3640377b 0x36402fcf 0x394969c4 0x393edfeb 0x36521733
0x32a83d2d 0x3264b11f 0x3264a4b7 0x3264f1bd 0x39466f3b 0x393d9ebd
0x393d9d49 0x353132eb 0x3636b301 0x7e863 0x7e808) libc++abi.dylib:
terminate called throwing an exception

This is the troublesome code:

-(void)authenticateLocalUser {

    if (!self.checkingLocalPlayer) {
        self.checkingLocalPlayer = YES;
        GKLocalPlayer *thisPlayer = [GKLocalPlayer localPlayer];

        if (!thisPlayer.authenticated) {

            [[GKLocalPlayer localPlayer]
             authenticateWithCompletionHandler:^(NSError *error)
             {
                 [self finishGameCenterAuthWithError:error];
             }
             ];
        }
    }
}

Any idea what I’m doing wrong here?

  • 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-11T22:56:47+00:00Added an answer on June 11, 2026 at 10:56 pm

    Ggrrrhhh same issue, think I found it…ios6 have deprecated authenticateWithCompletionHandler see link, the propose you use AuthenticateHandler.

    http://developer.apple.com/library/IOS/#documentation/GameKit/Reference/GKLocalPlayer_Ref/Reference/Reference.html#//apple_ref/occ/instp/GKLocalPlayer/authenticateHandler

    This appears to work…

    GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
    [localPlayer setAuthenticateHandler:(^(UIViewController* viewcontroller, NSError *error) {
    
    //[localPlayer authenticateWithCompletionHandler:^(NSError *error) { OLD CODE!
        if (localPlayer.isAuthenticated)
        {
            //do some stuff
        }
        else {
    
            UIAlertView *alertView = [[UIAlertView alloc]
                                      initWithTitle:@"NOT AUTHORISED"
                                      message:@"YOUR'RE NOT LOGGED INTO GC."
                                      delegate:self
                                      cancelButtonTitle:@"OK"
                                      otherButtonTitles:nil];
            [alertView show];
    
        }
    })];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Where do most Rails apps usually keep their non-active-record classes? In app/models? In lib/some_file.rb?
Im not sure why, but my app all of a sudden keeps force closing
My server keeps crashing. It is especially bad in localized parts of my app
Hi I am setting up in app purchase where user can buy different Sounds.
I am designing a simple expenses app which keeps track of expenses I do
In an app, Users and Cases have a many-to-many relationship. Users pull their list
I'm writing an web-app that keeps track of deadlines. With this app you have
I'm just researching at the moment the possibility of writing an app to record
I have several methods for getting a record in my app But for some
Hey guys how can I make an app keep playing an mp3 after pressed

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.