r/iOSDevelopment • u/lightsd • Jun 08 '25
Sandbox accounts - Simulator help!!
I'm writing a Swift app with an in-app subscription option. I've created a couple sandbox accounts, but I am hitting a wall getting them to work in the iOS simulator. My app has a .storekit file that is synced with App Store Connect. I do not have a physical iPhone I can reset and set up with a sandbox account. (I have a single iPhone that's my "lifeline" and I'm not going to risk signing out of my iCloud account on that.)
Whether or not I sign in at the OS-level to the sandbox Apple account, the app believes no account is signed in. I get this error in the logs:
Error enumerating unfinished transactions: Error Domain=ASDErrorDomain Code=509 "No active account" UserInfo={NSLocalizedDescription=No active account}
(I see the above error even when I've signed into the simulator in iOS Settings with a sandbox account.)
When I click the purchase button, it prompts me for my Apple Account credentials, despite being signed into a sandboxed account at the OS-level. So I manually enter the same credentials, I get this error:
Purchase did not return a transaction: Error Domain=ASDErrorDomain Code=530 "(null)" UserInfo={NSUnderlyingError=0x600000d0fc30 {Error Domain=AMSErrorDomain Code=100 "Authentication Failed The authentication failed." UserInfo={NSMultipleUnderlyingErrorsKey=(
"Error Domain=AMSErrorDomain Code=2 \"Password reuse not available for account The account state does not support password reuse.\" UserInfo={NSDebugDescription=Password reuse not available for account The account state does not support password reuse., AMSDescription=Password reuse not available for account, AMSFailureReason=The account state does not support password reuse.}",
"Error Domain=AMSErrorDomain Code=0 \"Authentication Failed Encountered an unrecognized authentication failure.\" UserInfo={NSDebugDescription=Authentication Failed Encountered an unrecognized authentication failure., AMSDescription=Authentication Failed, AMSFailureReason=Encountered an unrecognized authentication failure.}"
), AMSDescription=Authentication Failed, NSDebugDescription=Authentication Failed The authentication failed., AMSFailureReason=The authentication failed.}}, client-environment-type=Sandbox}
I have no idea what this password reuse failure is. I have no idea why the app isn't simply using the already signed account?
I've tried creating another sandbox account and get the same problems.
What's going on here? How can I fix it?
1
u/Long_Test4951 Nov 16 '25
having hte same issue, signed out of media & purchases, signed into developer with sandbox account, reset phone, re-opened, Testflight won't let me sign in with the sandobx tester email. Tried a different email, tried multiple different types of resets, nothing works, so frustrated! Do I have to try to find another device to test one?
1
u/isthegeek Jan 30 '26
For anyone coming here in future, I just solved this issue. First please check these things:
auto-renewable subscriptions configured in App Store Connect
subscriptions show “Ready to Submit” status
Pricing set for all regions
Localization complete (English US)
Review screenshots and notes added
App Store Connect Business Paid Apps Agreement is "active"
Sandbox tester account logged in via Settings → Developer → Sandbox Apple Account
Verify Bundle IDs and Product IDs match exactly (character-for-character)
In Xcode Product → Clean build
Try sandbox account sign-out/sign-in
Try Developer → Sandbox → Manage → Initiate Transaction (put your product_id and bundle_id)
Clear sandbox purchase history
Sign out from media & purchases
Finally, if it still doesn't work, wait for few hours. Sometimes it takes time to reflect in paywall
1
u/luckyluke146 Jun 09 '25
you don’t have to signout your icloud to use sandbox for ipa testing. just signout media & purchases section in account setting. after that, go to developer setting scroll to bottom, you can set sandbox account in there.