游戏中心InviteFailed

0xD*_*15B 5 iphone multiplayer objective-c game-center

我正在尝试发送游戏中心邀请.从模拟器发送到设备或从设备发送到模拟器会导致InviteFailed错误.

可能是什么问题?实施不正确?互联网速度低?或者是否无法使用模拟器测试Game Center邀请?

谢谢 邀请失败

Jos*_*ane 8

据我所知,你无法在模拟器中测试多人游戏.您将需要两个设备.


Eri*_*sen 7

即使邀请功能在模拟器中不起作用,您仍然可以使用findMatchForRequest(类似于自动匹配功能)在模拟器中测试多人游戏:

[[GKMatchmaker sharedMatchmaker] findMatchForRequest:request withCompletionHandler:^(GKMatch *match, NSError *error)
Run Code Online (Sandbox Code Playgroud)