Skip to content

Instantly share code, notes, and snippets.

@christophercotton
Created April 2, 2013 14:51
Show Gist options
  • Save christophercotton/5292819 to your computer and use it in GitHub Desktop.
Save christophercotton/5292819 to your computer and use it in GitHub Desktop.
Apple GameKit Error 5003 during

I was getting the error:

Error Domain=GKErrorDomain Code=3 "The requested operation could not be completed due to an error communicating with the server." UserInfo=0xb1935a0 {GKServerStatusCode=5003, NSUnderlyingError=0xb1866b0 "The operation couldn’t be completed. status = 5003, Found turn sequence at index: 1 that will never be reached because infinite timeout has specified for previous sequence", NSLocalizedDescription=The requested operation could not be completed due to an error communicating with the server.}

When trying to end the match with

  [match endTurnWithNextParticipants:nextParticipants turnTimeout:GKTurnTimeoutNone matchData:data completionHandler: ^(NSError *error) {

Turns out, if you use the GKTurnTimeoutNone you cannot pass more than one participant in the array. The fix was to only pass the next player.

  [match endTurnWithNextParticipants:@[nextParticipant] turnTimeout:GKTurnTimeoutNone matchData:data completionHandler: ^(NSError *error) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment