问题一:The requested operation could not be completed because this application is not recognized by Game Center.
Domain=GKErrorDomain Code=15 "The requested operation could not be completed because this application is not recognized by Game Center." UserInfo=0x17d08ee0 {NSLocalizedDescription=The requested operation could not be completed because this application is not recognized by Game Center.}
解决办法:
Just need to enable Sandbox in Settings--> Game Center --> Sandbox.
参考链接:http://stackoverflow.com/questions/25891250/game-center-authentication-doesnt-work-in-ios-8
问题二:The requested operation has been cancelled.
Error Domain=GKErrorDomain Code=2 "The requested operation has been cancelled." UserInfo=0x1fdc4740 {NSLocalizedDescription=The requested operation has been cancelled.}
原因:
如果用户多次调用gamecenter,但是又取消登录,苹果就会认为用户取消登录,后续就无法正常登录了。
解决办法:
在设置->gamecenter中登录,后续游戏便可正常调用gamecenter登录