问题
I'm having a problem getting the Test User sandbox IDs I've created in iTunesConnect to purchase a non-consumable product. I wait a day after I create the IDs before trying to use them. First, I make sure no ID is signed in according to Settings/iTunes & App Store on the device. Then, when I run my app in Simulator on a real device and click my Buy button and sign on with a Test User ID, I get a popup saying the ID must be verified and that a verification email will be sent if I click the Verify button. Now, I know I should not verify a Test ID (because according to this SO question/answer, that action turns the ID into an actual account). I'm also given the option to Ignore the verification -- if I click that, nothing happens -- I'd expect the purchase process to continue, but it doesn't. Yes, of course, I'm running the simulation on an actual device. And, though I start out with no ID entered in Settings for iTunes/App Store, when I go back after receiving the above, my own Apple ID now appears as signed-in! Could this have something to do with my activating Apple's Two-Factor Authentication? I just turned that on last week.
回答1:
I have finally got iTunes Connect sandbox users to work. In order to do so I had to verify the sandbox user's account and hence needed a valid email address to do so.
Steps highlighted at the end
This goes against how I had always created and used sandbox users from day 1, but either there's been an undocumented change or is the current hack for the current iTunesConnect server maladies.
- I can confirm that the receipt generated is a sandbox receipt.
- The user is a sandbox user.
- I have not entered nor paid with a credit card.
Steps to solve
- Go to iTunesConnect -> Users & Roles -> Sandbox User and add a new user
- Use a valid email address. Tip: A real gmail account and the
+
symbol can generate many valid emails. i.e.jon.doe+1@gmail.com
,jon.doe+2@gmail.com
etc wherejon.doe@gmail.com
is a valid gmail account. - Wait for verify email from iTunes.
- Verify the sandbox user by clicking on verification link. Tip: Use incognito browser to keep your real and sandbox Apple sessions separate.
来源:https://stackoverflow.com/questions/41528588/apple-verification-email-requested-for-sandbox-tester-user-id