When attempting to create a match in ios7 using gamenetwork.request and associated playerids the app crashes with a NSInvalidArgumentException:
gameNetwork.request( “createMatch”,
{
playerIDs = {“VALID GAMECENTER ID1”, “VALID GAMECENTER ID2”},
minPlayers = 2,
maxPlayers = 3,
playerGroup = 1,
playerAttributes = {1,4,6}, – The bits to set for the player
inviteMessage = “Hi join me”,
listener=requestCallback
}
Every permutation of variables included and removed (minus the playerIDs) still results in the exception crash. Is this supposed to work such that you don’t have to have the gamecenter screen appear?
Exact exception details:
***Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘*** -[_NSDictionaryM removeObjectForKey:]: key cannot be nil’