iOS TurnBased with U3DXT - Removing games in invalid state

While testing my TurnBased iOS game, I seem to have gotten a game stuck in an invalid state and am not sure how to remove it.

I’m using U3DXT for my GameKit API calls, and they offer a RemoveAllMyMatches helper method for testing to clear out all your existing games. From what I found on other sites, it seems what I did was to invite a player to a game and then quit that game before I passed the turn off to the invited player (using RemoveAllMyMatches).

The consequence of this is that one player now has a game stuck in their match list that I can’t clear out, and I also can’t seem to start a new game between these players since GameKit knows there’s already one going or something.

How do I get a list of all my games and force remove them?

Edit: Specifically, the errors I’m getting below when trying to clear games on the user with the stuck gamestate:

end match error: The operation couldn’t be completed. (NSURLErrorDomain error -1009.)
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
U3DXT.iOS.GameKit.<_EndAndRemoveMatch>c__AnonStorey10:<>m__14(NSError)
U3DXT.iOS.Native.GameKit.<_endMatchInTurnWithMatchData_completionHandler__completionHandler_callback>c__AnonStorey69:<>m__69()
U3DXT.Core.CoreXT:RunOnMainThread(Action)
U3DXT.iOS.Native.GameKit.GKTurnBasedMatch:_endMatchInTurnWithMatchData_completionHandler__completionHandler_callback(Delegate, Dictionary`2)
U3DXT.iOS.Native.Internals._CallbackCache:_Callback(String, String)
 
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)

remove match error: The requested operations could not be completed because one or more parameters are invalid.
UnityEngine.Debug:Internal_Log(Int32, String, Object)
UnityEngine.Debug:Log(Object)
U3DXT.iOS.GameKit.<_EndAndRemoveMatch>c__AnonStorey10:<>m__16(NSError)
U3DXT.iOS.Native.GameKit.<_removeWithCompletionHandler__completionHandler_callback>c__AnonStorey72:<>m__72()
U3DXT.Core.CoreXT:RunOnMainThread(Action)
U3DXT.iOS.Native.GameKit.GKTurnBasedMatch:_removeWithCompletionHandler__completionHandler_callback(Delegate, Dictionary`2)
U3DXT.iOS.Native.Internals._CallbackCache:_Callback(String, String)
 
(Filename: /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UnityEngineDebug.cpp Line: 49)

In case anyone else runs into this issue, one way of resolving it seems to be to the following:

  1. Delete the app from both devices. Select the option to remove all data associated with the app.
  2. Disconnect your Wifi/Cell service.
  3. Open Game Center. You should no longer see your app listed under games.
  4. Reconnect to the Internet and reinstall your game.

Still doesn’t fully explain how the game state got messed up in the first place, but it does seem to work and now lets me begin new games between my devices.