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.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
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.
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:
Was having the same issue and solved it by adding a leaderboard in iTunes Connect.
If you plug in the device and then look at the settings/ gamecenter. The setting for the sandbox will show up.
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)