试图测试应用程序内购买时不允许创建 iTunes 帐户

我有一个应用程序在应用程序商店,我想测试应用程序内购买。我遵循了 苹果网站上描述的步骤,但是我面临着一些问题。

当我尝试在我的应用程序中登录 iTunes 或者在设置/iTunes 和应用程序商店中登录时,我收到错误信息:

不允许创建 iTunes 帐户。

此时不能在 iTunes 商店中使用此 Apple ID。请稍后再试

我在网上搜索了一下,但是一无所获。似乎我是第一个遇到这种错误的人。

itunes account creation not allowed

24321 次浏览

Looks like Apple has this poorly documented. Basically, you shouldn't log in with your sandbox user from that screen. Log in when actually prompted by your test IAP.

Source: Unable to log in with sandbox test users on device

I just had the same problem. Here's how I solved it:

  1. Don't try to sign in Settings > iTunes & App Stores
  2. Log out of iTunes & App Stores (make sure you're not logged into any account)
  3. Just open the app you're trying to test
  4. Your app will promt you to sign in
  5. Enter your credentials for your sandbox test account

Et voilà! You're done. Worked for me. I hope it works for you.

I had this issue. I tried changing existing Sandbox tester account password and tried to login on device...but didn't worked.

Even iPhone device restart didn't worked [last option that most developer follows ;-) ]

I thought it takes time to update this newly created Sandbox testing on DB. So left the login option as it is on device

Now, after launching app that contains In App purchase. Press on button that is responsible for In App purchase. This will prompt for Apple credentials. Enter the Sandbox tester credentials here.

Voila this worked for me!

The top answer is correct, but if you're still having the issue:

Make sure that the app you're trying to log into is a development app installed with Xcode. You'll get the same error if your version was installed from the App Store.

(I got confused because I have 5 versions of almost the same app.)

For those who are still facing an issue, here is the solution: From settings main screen, select "iTunes & App Store", as seen in the picture

enter image description here

now scroll to bottom and you will find your previous apple is still there, sign out of that, see picture for reference, and now when doing in app purchase, it will ask for both apple id and password, use your sandbox tester apple id and password there.

enter image description here

This has changed... again. Here's how to fix it in 2020:

0) On your test device, go to Settings.

1) Click your account name at the the top, the one with "Apple ID, iCloud, iTunes & App Store" under it.

2) Click "iTunes & App Store"

3) Scroll all the way to the bottom and find the option: "SANDBOX ACCOUNT". It will have defaulted to your AppleID. Tap it and sign out.

4) Tap "Sign In" under SANDBOX ACCOUNT.

5) Add your Sand Box Account credentials. You will probably have to have verified your email address before this will work.