iOS 8 beta 5 Game Center Sandbox won't recognize my app

牧云@^-^@ 提交于 2019-12-18 05:42:13

问题


I trying use GC sandbox in game, on iOS 7 it works fine, but on iOS 8 beta5 GC authentication return error "The requested operation could not be completed because this application is not recognized by Game Center". In production GC work fine on iOS 7 and 8 beta5.


回答1:


You should turn on the GC sandbox mode.

go to settings --> game center

scroll to the bottom, there is a "sandbox" swith under "developer".

(Important! - These developer options are hidden until you have connected the device to XCode 6. If you didn't use XCode and deployed your app in some other way - e.g. Testflight, iPCU, iTunes, then you will not see these options)




回答2:


If you aren't seeing the sandbox switch under Settings > game center (developer section), then you need to connect the device to XCode

OR: Use Apple's testflight iOS app found here on the App Store: https://itunes.apple.com/us/app/testflight/id899247664?mt=8

That will enable the developer Sandbox switch as well. Using the old testflight web link tool on iOS doesn't enable the sandbox switch.




回答3:


If you plug in the device and then look at the settings/ gamecenter. The setting for the sandbox will show up.




回答4:


Was having the same issue and solved it by adding a leaderboard in iTunes Connect.




回答5:


Make sure you add an app to iTunes Connect and enable Game Center for it, not just the provisioning/entitlements. Then I added a leaderboard as Alcides Eduardo Zelaya suggested.

From the GKLocalPlayer docs:

Receiving a GKErrorGameUnrecognized error means that you have not enabled Game Center for your app in App Store Connect. Sign in to your App Store Connect account and verify that your app has Game Center enabled. Also, confirm that the bundle identifier in your Xcode project matches the bundle identifier you assigned to your app in App Store Connect.



来源:https://stackoverflow.com/questions/25238646/ios-8-beta-5-game-center-sandbox-wont-recognize-my-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!