Currently building a brand new app where we have 2 bundles in AppStoreConnect - the prod bundle and the non-prod bundle (the latter is purely used to connect to and test against our dev environment and will never be released to the store).
We've been successfully testing our non-prod bundle using TestFlight and we're now adding in-app purchase to it. I've created the product in AppStoreConnect, but on the Manage In-App Purchases page, I see this message:
Your first in-app purchase must be submitted with a new app version. Create your in-app purchase, then select it from the app’s In-App Purchases section under App Store and click Submit. Once your binary has been uploaded and your first in-app purchase has been submitted for review, additional in-app purchases can be submitted using the table below.
Is this telling me that I need to submit my non-production app for review by Apple before I can test IAP using a TestFlight build?
(Note that I know there's the neat StoreKit stuff in Xcode these days and I've tested that the app works OK using that... the next step is to get those IAPs available in our TestFlight build)
Just in case anyone else runs into this problem, here's what I found...
Using the StoreKit configuration that is provided in Xcode, you can test subscriptions in the simulator with no problems. However, trying to connect to the store and pull down IAP products on the simulator DOES NOT work.
Switching to a physical device, it will quite happily pull down in-app purchases even though the app itself has not been submitted for approval.