Game Center can't load players

I've discovered a problem with loading players from Game Center ids.


[GKPlayer loadPlayersForIdentifiers:@[@"G:111111111"] withCompletionHandler:^(NSArray *players, NSError *error)

{

Error Domain=GKErrorDomain Code=8 "The requested operation could not be completed because the player is invalid." UserInfo=0x156cc810 {GKServerStatusCode=5005, NSUnderlyingError=0x156c8a60 "The operation couldn’t be completed. status = 5005, NO SUCH PLAYER ID", NSLocalizedDescription=The requested operation could not be completed because the player is invalid.}

}];


The other player is not my Game Center friend and i retrieve his ID from connecting in an auto-match. Why can't i load the player from his ID ?

I have this issue too.


Did you find the solution.


Was it to use the email address associated with the gamecenter account?


Was it because you needed to use the emails of sandbox users (

iTunesConnect -> Users And Roles -> Sandbox Testers) when running from simulator (or when deveoping on your physical device?)

I'm seeing this also when running on devices only.


The games however were created by invitation, sent to a messages profile that is available on two different devices - despite these two devices using different Game Center handles.

Game Center can't load players
 
 
Q