I used to test my macOS app with a Storekit file, and now wanted to test it in the Sandbox environment. I have removed the storekit configuration file from my schema options. However, even after removing it and have IAP setup on App Store Connect (still rejected), I cannot get the app to use the sandbox environment.
Things I have done:
- Set the schema options StoreKit configuration to none.
- In the Mac App Store, login the sandbox account as my test user.
- Clean my build folder.
- Removed all derived data from Xcode.
- Run the app from Xcode or from the binary directly.
Regardless what I do, when I'm trying to purchase, I still see the purchase sheet says "Xcode" from the top left (instead of Environment: Sandbox).