Unable to log in with sandbox test users on device

IosIn App-PurchaseApp StoreApp Store-Connect

Ios Problem Overview


Trying to do some In App Purchase testing, so I created a sandbox tester on itunesconnect... but when I attempt to log in as that user on my device I get an error:

> Itunes Account creation not allowed > > The Apple ID cannot be used with the iTunes store at this time. Please > try again later.

If I put in the wrong password for the account I get an account rejection so its not a password typo.. this is happening for every test account I create... anyone have a clue what the hell is going on.. I cannot find any information on this anywhere.

Ios Solutions


Solution 1 - Ios

Yes, the answer is I AM AN IDIOT... pure and simple.

I was setting my user account in itunes login to these test accounts.. which invalidates them as test accounts because they try to legitimately log into itunes...

You have to have your ITUNES/APPstore login EMPTY, do not try to log in explicitly in the settings... LOG OUT of ITUNES/APP STORE so that no account is in the apple ID in settings and then just run your app & login the test account via your app.

I had properly done this, but then without reconsulting the documentation I went to change users, and saw that I had a test user in the UI of the settings (I guess it gets set by the software) so I attempted to just set it there, and was invalidating the accounts causing this problem.

This is purely my mistake, but Apple could do a better job on the error this thing throws, and have the app store/itunes perhaps display something other than the test id, so if its been a week since or two since you set your test id and go to change it you don't just foolishly think you do it that way...

Anyway... you will likely need to delete all your sandbox testers if you did what I did as they will be invalid and then create new ones... and then remove the appstore/itunes login on your test device and try to run it....

I admit this is documented, I did follow it the first time I used a test user, but forgot the next time I wanted to test.. which lead to this... fully my fault.. but I suspect I am not, nor will I be the only one to do this... which is why it's so odd I couldn't find anything else documented about this error anywhere.

Documentation for reference:

Solution 2 - Ios

In my case, just log out your real Apple ID, don't login sandbox tester Apple ID, then run your App, buy product, and system will showing a alert view to let you choose "Use Existing Apple ID" or "Create New Apple ID", of course choose first one, then login your sandbox tester Apple ID, and it's done.

Solution 3 - Ios

Answer 2020

If your iOS is after 13, now go to Settings -> iTunes & App Stores at the bottom you will see a section called:

> SANDBOX ACCOUNT

this is the place where you can log in your tester accounts

below screenshot shows where it is:

enter image description here

Solution 4 - Ios

A simple solution could be to just reset your iPhone, then the sandbox iap account will be enabled to be added. Maybe it's Apple's bug.

Solution 5 - Ios

Must be a bug in their system. I am testing out subscriptions and I am able to add a 1-month sub / 7-day trial, and I get the same message when I try to view the account (so I can manage the subscriptions). Other times it will just show a regular subscription message (not showing the 7-day trial message).

I am however, still able to get this sandbox account subscribed and the app responds correctly.

These "Sandbox" account still need to be an actual working iTunes account with a credit card attached. I figured this was the reason I was seeing the error, but after setting up and verifying this test account, I still see the error.

I believe it to be a bug in their system as they start to implement the new subscription system. If anything, contact the Developer Tech support to see what they say, but they will never tell you its a "bug" in their system.

Solution 6 - Ios

Another reason happened to me is that I (was unaware and) tried to use sandbox tester on app that downloaded from app store, which is signed with store release credential.

Looks like sandbox tester will only work with app signed with development profile or test flight.

Correct me if someone can use sandbox tester on store-downloaded app.

Solution 7 - Ios

I had this problem as well, the simple solution was to sign out of my iTunes account on my physical device, restart it, clean the project and then build and run as normally. Only sign into your test iTunes account after the restart once the project is running. This issue may be caused by the way in which Apple handles or cashes users iTunes accounts on a device.

Solution 8 - Ios

In sandbox user provide valid username and verify it then login , It will only work after email verification

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSpeckpghView Question on Stackoverflow
Solution 1 - IosSpeckpghView Answer on Stackoverflow
Solution 2 - IosMeilbnView Answer on Stackoverflow
Solution 3 - IosSkyView Answer on Stackoverflow
Solution 4 - IosShuangquan WeiView Answer on Stackoverflow
Solution 5 - IosWrightsCSView Answer on Stackoverflow
Solution 6 - IosWappenullView Answer on Stackoverflow
Solution 7 - IosLuke PearceView Answer on Stackoverflow
Solution 8 - IosAbeer IqbalView Answer on Stackoverflow