StoreKit configuration file ignored: the Simulator shows no products
If your .storekit file seems ignored, the scheme you're running almost always doesn't select it. A file in the project does nothing until Edit Scheme → Run → Options → StoreKit Configuration names it. Check that the product IDs in the file exactly match the ones your code asks for, and rerun from Xcode. The file never applies to TestFlight or to builds started outside Xcode.
Symptom
Product.products(for:)returns an empty array in the Simulator, even though the.storekitfile lists the products.- Changes to prices or products in the file don't show up.
- Debug → StoreKit → Manage Transactions is empty or greyed out.
- It works on one teammate's Mac and not another's.
Why it happens
Xcode uses a StoreKit configuration file only for runs launched from Xcode, and only when the active scheme selects it. Apple's Xcode technote lists the checks: the right file is active, the product IDs match, and the file's products are set up the way the app expects.
| Cause | How to tell |
|---|---|
| Scheme doesn't select the file | StoreKit Configuration in the scheme's Run options is None |
| Another scheme, or a scheme that isn't shared | Teammates use a different scheme, or xcshareddata doesn't include the setting |
| Product IDs differ from what the code requests | Compare the IDs in the file with your request list |
App launched outside Xcode (from the home screen, or flutter run / expo run without the scheme) |
Works in an Xcode run, not otherwise |
| File synced with App Store Connect and missing new products | You added products in App Store Connect after the last sync |
Confirm it
- Product → Scheme → Edit Scheme → Run → Options. Check StoreKit Configuration names your file.
- Open the
.storekitfile and copy each product ID. Compare them with what your code requests, including case. - Run from Xcode, then open Debug → StoreKit → Manage Transactions. If the window opens with your file's name, the file is active.
Fix
- Select the file under StoreKit Configuration in the scheme you run. Tick Shared in Manage Schemes so teammates and CI get the same setting.
- Make the product IDs in the file match your code, or the other way round.
- Launch from Xcode. For React Native, Expo or Flutter, open the generated iOS workspace in Xcode, set the scheme option there, and run from Xcode when you need the file.
- For a synced file, sync it again after adding products in App Store Connect.
- To test against the real sandbox instead, set StoreKit Configuration back to None. A configuration file left on is a common reason products “work in Xcode” and fail everywhere else.
Stop it coming back
- Commit the shared scheme, so the StoreKit setting travels with the project.
- Use the configuration file for UI and edge cases, such as failed and refunded transactions, and the sandbox for anything server-side.
- Before a release, run one purchase with StoreKit Configuration set to None.
If you use BillDog
A configuration file can show products in a BillDog paywall, because the SDK loads products through StoreKit. But BillDog's server only accepts transactions signed by Apple, and transactions from Xcode's local StoreKit testing aren't, so they don't grant entitlements. To test a BillDog paywall without StoreKit at all, the SDK's own message points to BillDogConfig.simulatedPurchases with a test key. To test real purchases, use the sandbox. This was checked against the published iOS SDK 1.1.1-beta.5 and BillDog's purchase API. It hasn't yet been reproduced on a device for this page.
Related
Sources
Did this fix it?
Frequently asked questions
Does a StoreKit configuration file work in TestFlight?
No. The file only applies to runs launched from Xcode with that scheme. TestFlight and App Store builds always talk to Apple's servers.
Do I need the products in App Store Connect to use a configuration file?
No, unless the file is synced with App Store Connect. A local file can define products that don't exist anywhere else, which makes it good for UI work and bad as proof that the store is set up.
Why do purchases from the configuration file not unlock anything on my server?
Transactions made against a configuration file are signed locally by Xcode, not by Apple, so a server that verifies Apple's signature rejects them. Test server-side flows in the sandbox.