I have been searching for a few days now an cannot find a thing.
I have an ipod touch 4g and have just started adding Game Center to a game i'm working on.
This works fine in the simulator, but when i try to test on my device (running the app in debug mode), the game isn't recognised by Game Center.
I've seen on other forums that i should be in sandbox mode, but i cant seem to enter it on my device.
Please could someone tell me how to enter SB mode
Thanks
What you do is:
Log out of Gamecenter.
Run you app on the device (or the simualtor)
When it asks you for your account details in your app, create a new account. That will be a sandbox account.
It helps to create the sandbox account in the sim first, just to be sure you aren't really create a Gamecenter account.
To be fully sure of creating a sandbox account, run Gamecenter on the simulator and create an account there.
From the iOS Provisioning Portal:
In order to utilize the Game Center
Sandbox for testing, you must also
create a new Game Center Test User
account in the Game Center application
on your device.
All explicit App IDs are automatically
enabled for In App Purchase and Game
Center. Wildcard App IDs and
duplicates of existing explicit App
IDs are ineligible for In App Purchase
and Game Center.
Basically there are two steps:
On a development enabled iOS Device, create a new Game Center account.
You must sign your app with an App ID in the form com.yourcompany.yourappname, you can't simply use the wildcard development id/provisioning profile (in the form com.yourcompany.*) because Game Center won't recognize your app otherwise.
It seems this whole process is simpler now in iOS 8. All I had to do was go to Settings -> Game Center and under the Developer section, enable Sandbox. At that point I was able to use Game Center in the development build of my game with my personal account and also with a sandbox account just fine.
Although what Kendall explains used to work in the past, from iOS9 it seems you have to create the sandbox accounts from iTunesConnect.
iTunesConnect -> Users And Roles -> Sandbox Testers
Click on the (+) icon to create a new user.
Start your app from XCode, and when prompted, use the sandbox e-mail account and password.
Follow prompts to create the Game Center account.
Had the same problem. This worked for me:
1. log out GC, UNINSTALL APPSYNC if your're jailbroken, kill all processes.
2. create adhoc build, sign it with an appropriate entitlement, upload to your webserver, whatever.
3. download/install this ipa to your device and run, when asked create new account, or use existing - it will be registered (or created if new) inside sandbox.
Sadly, Apple deprecated the sandbox environment for Game Center since iOS 9, see
As part of the release of iOS 9 and El Capitan, the Game Center development sandbox has been eliminated, allowing all pre-release development to occur in exactly the same server environment as released games.
Technical Note TN2417: Game Center: Life without a Sandbox
WWDC 2015 Session: Going Social with ReplayKit and Game Center
Today, if we want to test with a new game center account, we need to create new apple ID with an actual email address for two factor authorization.
The simplest fix that should work for many people is as follows:
Close any Game Center enabled games
Open up Game Center
If you're logged in to a sandbox account, log out
If not, create a dummy sandbox account, then log out once done
Restart Game Center
Try to log in using your real account, that may fix things
If not, make sure you're logged out, then quit Game Center
Start a Game Center enabled game, and try to log in your real account
Related
Now I could move apps from one apple developer account to another apple developer account.
But when I try to move I couldn't transfer some apps. I attached the image below. When I click the done button its redirect the app information pages.
In one app I could able to move to further process but in another app I couldn't it redirect's to the app information page could anyone has the solution for this.?
You have to remove all builds and testers from Testflight to continue. (See the missing tick in the screenshot)
I am building an app that uses Game Center. To test I was using my iPhone and the simulator to log in with different accounts. I now want to use my wife's phone to test with me and when I open the app it's not logging into the sandbox.
It shows the game enter modal logged in but play now and invite buttons are greyed out and it says unauthenticated user.
How do I make my wife's iphone use Game Center sandbox.
Thanks
As a developer, you are required to create a separate Game Center account for Sandbox. At any given time, you must choose whether to log into Sandbox for testing, or into the live environment. Start by launching the Game Center app and logging out the currently authenticated player. After this, run your game or another Game Center-enabled game. Depending on how that app is distributed, you enter different credentials. If that app is provisioned for development, enter your test account information (logging you into the Sandbox). Otherwise, enter your live account information (logging you into the live environment.
Just log out of Game Center and launch your app. Then you enter you log into your test account.
From Apple.
Launch Gamecenter -> Me -> Tap on Account: -> Sign Out. Sign in with your sandbox account.
So it ended up being that I wasn't opening the modal sandbox sign in from my app. I made a code change that upgraded the call to display the login to support IOS6. The previous method I was using was deprecated. Therefore the new code I put in forgot to present the modal for sign in which left me hanging when I went into the app.
I plan to update my current game on the app store and integrate GameCenter within. I have completed it and tested it on a device. Now on the device whenever I login, its the sandbox state. Even if I am logged in from GameCenter the still asks me to sign in on the sandbox state. How do I test on the non sandbox version. I a bit confused. Thank You!
You cannot use the non-sandbox version until it is approved and published by Apple.
If it works fine in sandbox mode, then it should work fine when Apple switches it to non-sandbox.
The sandbox is meant for testing your app, so you won't destroy the normal GC servers.
To summarize- your final app will work on the regular GC servers, while the test is on sandbox. Apple rules.
I've just enrolled in Apple's iOS Developer Program (account type: Individual).
In my Xcode organizer on my iPhone 4 device I click "Add device to provisioning portal" => Xcode asks my credentials => I enter them => I see "No value was provided for the parameter 'appIdName'." dialog window.
What am I missing?
Part of the process in Xcode's automated submitting of certificate requests is that it looks for a "Wildcard" app ID. If you're missing this (for some reason, it's created on some accounts automatically and not created automatically on others?), this automated process will likely fail.
To fix it, try the following:
1) "Revoke" any existing certificates you might have from within the developer portal
2) Create a new "App Id"; title it "Wildcard"; and enter only " * " (without any spaces or quotes) as the suffix.
3) Try the automated certificate request from within Xcode again, and it should now work
Cheers!
I'm getting the same issue in Xcode. I think it's related to the wildcard app ID that Xcode creates for you. There seems to be an issue with that process that then cancels the device addition process that you're trying to complete.
You should still be able to add the device via the iOS Dev Center. Once logged in, go to the Provisioning Portal and you can add the device there.
Not perfect I know, but should allow you to start building apps and testing on your device until the Xcode issue is resolved.
You could avoid this problem by making App ID with wild-card id in iOS dev center.
I guess Organizer could not follow the updated policy related to App ID in iOS Dev Center/Provisioning Portal.
App ID with wild-card("*") is seems to be restricted in some function,
for example, Push Notification, Game Center.
and
developer also seems to be required to make sure the security option for the app related to the App ID.
Actually, my initial goal was to be able to test my app on iPhone device. Clicking "Add device to provisioning portal" still results into the subject error, but anyway my iPhone device have been added somehow to the Provisioning Portal and now I can see my app on iPhone (I haven't even tried to add it via iOS Dev Center). My guess is that this procedure takes multiple steps to be completed, and only the last of them still fails now, while the rest of them do succeed.
In my case the provisioning profile for that application was invalid, then I did the following steps:
Login on Developers Portal
Click on Certificates, Identifiers & Profiles section.
Go to Provisioning Profiles, in the list I realized my app profile
was invalid.
Click to edit it and selected the corresponding certificates (all)
and devices (all).
Download the profile and un Run. Issue solved.
I'm working on a game which uses Game Center for multiplayer gaming.
Now the time has come to test the game with another person.
At first - I thought it would have been easy - just send him the provisioning file which has been created with my developer account (and not his) along with the project.
Turns out he can't compile the application with my provisioning file, which is the only way from getting the dreaded "This game is not recognized by Game Center" message.
I can sign in, and even Search for Players - but whenever he signs the application with his own provisioning profile (which is a wildcard in terms of App identifiers) he can't sign into Game Center because the game isn't recognized. He has a 'Test User' account linked to my iTunes Connect account - but it seems that he needs to sign the application with my provisioning profile - which will only sign with my certificate.
How do I get around this?
Any help appreciated.
I assume you are using different Developer Accounts with different App ID's. The Game Center Game is tied to a specific Bundle Identifier which consists of the Bundle Seed ID and your Wildcard App ID. His provisioning profile for his Bundle would have a different Bundle Seed ID and possibly a different App ID which results in Game Center not recognising the game for your Tester.
For him to have access to the same App ID, you'd need to have a Team Developer Account to use multiple certificates for the same Provisioning Profile and App ID.
Instead, You could distribute an IPA to your Test User for him/her to test. I've described the steps briefly below from the top of my head:
Add his Device UUID to your provisioning profile and import it into Xcode
Create your Entitlements file (check out the guide linked below) and Set your Scheme to iOS Device and Click on Product -> Archive
Once Archived, In Organiser find your Archived App, click on it and choose the Share Button
The Contents should be an IPA Package and set the Identity to your Developer Provisioning Profile with your Test User's device
Save the IPA somewhere and send to your Test User
Ask him to Sync the App onto his Device using iTunes or send it out via TestFlight App
For a more comprehensive and detailed guide, check out this post on creating an IPA: How to create an IPA (Xcode 4)