Unable to log in with sandbox test users on device
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:
- current: https://developer.apple.com/documentation/storekit/in-app_purchase/testing_in-app_purchase_transactions
- archive: https://web.archive.org/web/20171108103850/https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/TestingInAppPurchases.html
(Make sure to expand the : To perform testing for In-App Purchase products section)
Can't sign out of non existing sandbox account iOS 13.4
This could indicate that you have unfinshed transations in your payment queue. Try if looping in paymentQueue(_, updatedTransactions:)
through all transactions and calling finishTransaction()
on them fixes your problem.
iOS sandbox test user account not working properly
According to some people on the apple developer forums, regarding this particular issue, of course, you need only to verify the account and it seems to have done the trick for me.
Devices with iOS 15 ignore my sandbox account during test in-app purchases
TestFlight ignores the sandbox accounts (which we add to Settings -> Apps-Store -> Sandbox account) and uses the main account
That is correct behavior. The sandbox account is for when you are running an Xcode build. TestFlight, on the other hand, always uses your real account, but it doesn't charge you (and the same for your beta testers).
Apple Pay sandbox tester not able to login into device iOS 10
I have tried this many time. And getting same thing as you described. At last i were able to add test credit card for testing apple pay by following these steps:
- Log out from your itunes and app store
- Log out from iCloud
- Change your region(Settings->general->Language and Region) to country which supports Apple pay
- Now open Wallet app
- You will be asked to login to iCloud account.
- Login with your Sandbox Tester account
- Now add Test credit cards to your account.
To get test credit cards details: You can check the cards details shown in this document: https://developer.apple.com/support/apple-pay-sandbox/
Note: When you add test credit cards, some credit cards detail might get failed in verification, then you have to try another one, Luckily you will be able to add after 3-4 tries.
iOS 11 - Is in app purchase testing using a sandbox user keeps asking to sign in for anyone else too? Forever loop?
The same thing happens for me, for three separate sandbox users which were created before iOS 11 release. (The problem seems prevalent on iOS 11, there are posts on reddit and apple forums reporting this issue)
It seems creating new fresh sandbox user is the way to go. Sandbox users created after iOS 11 release work, while those created before the release cause "Sign in/Create Apple id" alert loop.
apple sandbox test user account?
No you dont.
Log out by going through: Settings -> Store
Do NOT login with your test user. (Otherwise you get that credit card screen).
Instead run your app and login with the test user when asked to.
Note: If you have already logged in with your test user it will become invalid. So in your case you will need to create a fresh test user and only log in when prompted to do so by your app.
Related Topics
Missing Marketing Icon Xcode Bug
Playing Back Audio Using Avaudioplayer iOS 7
Xcode UI Testing Error Keyboard
Tableview Cell How Do We Resize Cell in Swift Along with Image and Label
As3 for iOS:How to Serialize an Array and Then Save It
How to Resize Table Cell Based on Textview
How to Programmatically Get iOS Status Bar Height
Programmatically Go Back to Previous Viewcontroller in Swift
Multiline Label in Uistackview
Switching Viewcontrollers with Uisegmentedcontrol in iOS5
How to Get Core Data Object from Specific Object Id
Xcode Cannot Run on the Selected Destination
Uitableviewcell Set Selected Initially
How to Remove Special Characters from String in Swift 2
@Property/@Synthesize Equivalent in Swift
Skspritenode - Create a Round Corner Node
How to Make Uiview Animation Sequence Repeat and Autoreverse