Testing in-app products on macOS #15125
Replies: 1 comment
-
|
StoreKit testing on macOS in Tauri is tricky because there is no Xcode project you can attach a Here is what works: 1. Use the StoreKit Test environment via the command line You can set the export STOREKITTEST_STOREKIT_CONFIG=/path/to/your/Products.storekit
cargo tauri devThis tells the StoreKit framework to use your local configuration instead of hitting the App Store sandbox. It works the same way Xcode passes the config — just through an environment variable rather than a scheme setting. 2. Run your debug build from Xcode (workaround) If the env var approach does not work with the plugin you are using, you can create a minimal Xcode project that launches your compiled Tauri binary as its executable:
This gives you the full StoreKit testing environment (transaction manager, simulated failures, etc.) while running your actual Tauri binary. 3. Sandbox entitlements Make sure your Hope that helps — let me know if you run into issues with any of these approaches. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm testing in-app purchase feature on macOS with this plugin and local storeKit config. The iOS target is easily setup by opening the Xcode project and select the .storekit file in the iOS scheme.
How to do that for the macOS target? I tried to workaround the plugin, no luck so far.
Beta Was this translation helpful? Give feedback.
All reactions