IPhone GameKit: sandboxing - GKErrorDomain Code 3

Does anyone have experience with GameKit GKErrorDomain Code 3? I get an error when I try to upload an account to the leaderboard in Sandbox. The iOS help library says Indicates that an error occurred when communicating with Game Centre The Here is the complete error message:

 Error Domain=GKErrorDomain Code=3 "The requested operation could not be completed due to an error communicating with the server." UserInfo=0x75e4eb0 {NSUnderlyingError=0x7531e00 "The operation couldn't be completed. status = 5053", NSLocalizedDescription=The requested operation could not be completed due to an error communicating with the server 

Wednesday:

  • The request is made from a 4.1 simulator
  • GameKit authenticated a local player who went into the Sandbox
  • ITunes connects a listing with the name "Standard"
  • I can browse web pages in a simulator

Here is the code I use to download the grade

  GKScore *scoreReporter = [[[GKScore alloc] initWithCategory:@"Standard"] autorelease]; scoreReporter.value = 10; [scoreReporter reportScoreWithCompletionHandler:^(NSError *error) { if (error != nil) { // handle the reporting error NSLog(@"An error occured reporting the score"); } else { NSLog(@"The score was reported successfully"); } }]; 
+4
source share
2 answers

One of the reasons (for this reason affecting me) for the GKDomainError 3 code is if the Leaderboard category identifier specified in the initWithCategory message during GKScore initialization is incorrect.

+2
source

It’s easier to track if you print an error. Etc:

 NSLog(@"An error occured reporting the score: %@", error); 
0
source

All Articles