Hello everyone,
I am preparing my first iOS application for public release and have encountered a reproducible issue restoring a non-consumable in-app purchase across two physical iPhones using TestFlight and StoreKit 2.
I would appreciate any guidance from developers or Apple engineers who have experienced similar behaviour.
Testing environment
- App version: 1.0, Build 3
- Purchase type: Non-consumable lifetime upgrade
- Distribution: TestFlight
- Primary device: iPhone 17, iOS 27.2.1
- Secondary device: iPhone XR, iOS 18.7.3
- Storefront: Australia
- Both devices display the same Apple Account under Media & Purchases.
What works on the iPhone 17
- Initial in-app purchase completes successfully.
- Premium functionality unlocks correctly.
- Restoring purchases on the same device succeeds.
- Premium access remains available during offline testing.
What fails on the iPhone XR
- Install the same TestFlight build on the second device.
- Complete the initial application setup.
- Confirm that the application is running in Free mode.
- Select Restore Purchases.
- Enter the Apple Account password when requested.
- The following error appears:
"The App Store could not restore purchases. Unable to Complete Request."
The application remains in Free mode.
Console diagnostic findings
We connected the iPhone XR to a Mac and captured 342,795 diagnostic messages during a reproduction of the issue.
The relevant sequence shows:
- StoreKit authenticating with the production account for TestFlight.
- AuthKit authentication succeeding.
- Sandbox authentication returning HTTP 200.
- Successful account authentication being reported by appstored.
- Receipt synchronization subsequently failing with:
ASDErrorDomain Code=509 — No active account
- StoreKit reporting no active beta/sandbox account.
- Current transaction enumeration also failing.
The account-resolution failure occurs despite successful authentication.
Application code audit
We conducted a detailed review of our StoreKit 2 implementation and confirmed:
- There are no single-device licensing restrictions.
- There is no device-specific purchase binding.
- There are no activation limits.
- There is no requirement to use the original purchasing device.
- The application supports simultaneous premium access across multiple devices when Apple provides an eligible verified entitlement.
- The restoration implementation uses
AppStore.sync()andTransaction.currentEntitlements.
There is currently no evidence that the application is receiving and rejecting a legitimate verified entitlement from the second device.
Additional troubleshooting
- Multiple restoration attempts have been unsuccessful.
- Restarting the iPhone XR did not resolve the issue.
- The XR operates over Wi-Fi without a SIM card.
- Both devices are running the same TestFlight build.
- No Apple Account changes or purchase history resets have been performed.
We have also reviewed previous discussions involving ASDErrorDomain Code 509, including:
https://developer.apple.com/forums/thread/724431
https://developer.apple.com/forums/thread/723153
However, the reported local Xcode testing workaround does not appear directly applicable to cross-device TestFlight restoration.
Questions
- Has anyone successfully resolved this specific error during cross-device TestFlight purchase restoration?
- Is there a known issue involving TestFlight sandbox account resolution after successful Apple Account authentication?
- Are there any known differences in StoreKit restoration behaviour between iOS 18 and iOS 27?
- Is there a recommended non-destructive method to verify the effective purchasing identity across both devices?
- Are there any additional StoreKit 2 implementation requirements for restoring a non-consumable purchase on a second physical device?
- Could this behaviour be specific to the TestFlight sandbox environment rather than the production App Store environment?
We have submitted a detailed report through Apple Feedback Assistant, including the original Console diagnostic capture and technical investigation report.
Feedback reference: 25722266.
The underlying cause remains unresolved, and successful cross-device purchase restoration is an important pre-release requirement for our application.
Any advice, suggestions or shared experiences would be greatly appreciated.
Thank you for your time.‹