Skip to main content

iOS/macOS: Restore does NOT work with .storekit file


Forum|alt.badge.img+1
  • New Member
  • 3 replies

I think it should be made absolutely clear that restoring purchases on iOS does not work when using a .storekit file. At least I did not see this anywhere and spend a day on trying to get restore to work – until I switched to a scheme without a .storekit file.

Maybe this is mentioned somewhere in the docs, but I did not see it.

Thanks,

Marc-André

This post has been closed for comments

2 replies

jeffrey_bunn
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 300 replies
  • May 21, 2025

Hi ​@MAW, thank you for sharing this, and I apologize that you were stuck on this for quite some time. To clarify, were you trying to (unsuccessfully) restore purchases for a user with existing Sandbox purchases? Or did this user have only SKConfig test purchases and you still encountered issues?


Forum|alt.badge.img+1
  • Author
  • New Member
  • 3 replies
  • May 22, 2025

Hi ​@jeffrey_bunn , here is what I did, running the app (from Xcode, on a real device) with my scheme which includes a .storekit file:

  1. Install the app
  2. make a purchase for a 1 time IAP with the sandbox user
  3. delte the app
  4. install the app on the same device again
  5. try to restore the purchase

I tried it on macOS and on iPad. When not using the .storekit file it works.

TBH after a good amount of trouble shooting (resetting, deleting user, new sandbox account) I went to Chat GPT and it told me that:

Why StoreKit Testing Can’t Be Used for Restore:

  • .storekit files are local and sandboxed to the simulator or device session.

  • There's no persistent purchase history, and no real App Store receipt.

  • Calling restorePurchases() while using a .storekit file will not return any past purchases, because there’s nothing to restore — purchases are ephemeral and local only.

Not sure if the bot is 100% correct but at least it solved my problem ;) 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings