xcode 在 iPhone 上的 Game Center 上创建沙盒帐户
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5506893/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Create a sandbox account on Game Center on iphone
提问by Ashley Staggs
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.
我有一台 ipod touch 4g,刚刚开始将 Game Center 添加到我正在开发的游戏中。
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
请有人告诉我如何进入SB模式
Thanks
谢谢
回答by Kendall Helmstetter Gelner
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.
首先在 sim 中创建沙盒帐户会有所帮助,只是为了确保您不是真的创建了 Gamecenter 帐户。
To be fully sure of creating a sandbox account, run Gamecenter on the simulator and create an account there.
要完全确定创建沙盒帐户,请在模拟器上运行 Gamecenter 并在那里创建一个帐户。
回答by Hyman Lawrence
From the iOS Provisioning Portal:
从 iOS 供应门户:
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.
为了使用 Game Center Sandbox 进行测试,您还必须在设备上的 Game Center 应用程序中创建一个新的 Game Center 测试用户帐户。
所有显式应用 ID 都会自动为应用内购买和游戏中心启用。通配符 App ID 和现有显式 App ID 的副本不符合 In App Purchase 和 Game Center 的条件。
Basically there are two steps:
基本上有两个步骤:
- On a development enabled iOS Device, create a new Game Center account.
- You mustsign 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.
- 在支持开发的 iOS 设备上,创建一个新的 Game Center 帐户。
- 您必须使用 com.yourcompany.yourappname 形式的 App ID 对您的应用进行签名,您不能简单地使用通配符开发 ID/配置文件(以 com.yourcompany.* 形式),因为Game Center 无法识别您的应用否则。
回答by Casey Foster
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.
现在在 iOS 8 中,整个过程似乎更简单了。我所要做的就是转到Settings
->Game Center
并在该Developer
部分下启用Sandbox
。那时,我可以使用我的个人帐户和沙盒帐户在我的游戏的开发版本中使用 Game Center。
回答by endavid
Although what Kendall explains used to work in the past, from iOS9 it seems you have to create the sandbox accounts from iTunesConnect.
尽管 Kendall 解释的内容过去曾经有效,但从 iOS9 开始,您似乎必须从 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.
- 单击 (+) 图标以创建新用户。
- 从 XCode 启动您的应用程序,并在出现提示时使用沙盒电子邮件帐户和密码。
- 按照提示创建 Game Center 帐户。
回答by Tertium
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.
有同样的问题。这对我有用: 1. 如果您越狱,请注销 GC,卸载 APPSYNC,杀死所有进程。2. 创建临时构建,使用适当的权利对其进行签名,上传到您的网络服务器,等等。3. 将此 ipa 下载/安装到您的设备并运行,当系统询问创建新帐户或使用现有帐户时 - 它将在沙箱中注册(或创建新帐户)。
回答by Nils Munch
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
- 关闭所有支持 Game Center 的游戏
- 打开游戏中心
- 如果您登录到沙盒帐户,请注销
- 如果没有,请创建一个虚拟沙箱帐户,然后在完成后注销
- 重启游戏中心
- 尝试使用您的真实帐户登录,这可能会解决问题
- 如果没有,请确保您已注销,然后退出 Game Center
- 启动启用 Game Center 的游戏,并尝试登录您的真实帐户