iOS 8 beta 5 Game Center Sandbox won't recogni

2020-02-12 01: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.



标签: ios sandbox ios8