這是不可能的嗎?當我通過ID指定的兩個玩家是朋友時,我嘗試了一些成功進行匹配的測試代碼,但是當它們不是這樣的時候會失敗並出現此錯誤。錯誤的使用playersToInvite的非朋友之間的遊戲中心配對
使用GKMatchmaker findmatchforrequest
印刷描述:
Error Domain=GKErrorDomain Code=8 "The requested operation could not be completed because the player is invalid." UserInfo=0x1dd62f40 {GKServerStatusCode=5121, NSUnderlyingError=0x1dd62ca0 "The operation couldn’t be completed. Invitation between players who have not recently played: G:1752931323, G:1752935955", NSLocalizedDescription=The requested operation could not be completed because the player is invalid.}
可能的重複[以編程方式邀請Game Center朋友進行匹配](http://stackoverflow.com/questions/8451817/inviting-a-game-center-friend-to-a-match-programmatically) – Almo 2014-01-23 18:11:29