Trouble getting IAP to pass product to app.

Checked and rechecked my productID on the App Store Connect and in the code I’ve set up in Xcode (Swift). Both match exactly. I think I have everything entered in App Store Connect that might prevent product from passing through. I also set up a debug in the app that is telling me zero products are loading.

This is the first app I’ve ever built, so I’m a bit of a novice. But everything looks like it should be working but nada.

Any assistance would be greatly appreciated.

Answered by fledderjon in 846874022

Okay… Literally, only half an hour after I posted this I located the problem. In case anyone else ever has the same issue, the problem was that I didn’t have “In-App Purchases” enabled in “Signing & Capabilities.”

You have to go to Project > Targets > Signing & Capabilities. There is a tiny, light gray + at the top of the window to add capabilities. Search for “In-App Purchases” and double click the item. No other configuration is required.

Accepted Answer

Okay… Literally, only half an hour after I posted this I located the problem. In case anyone else ever has the same issue, the problem was that I didn’t have “In-App Purchases” enabled in “Signing & Capabilities.”

You have to go to Project > Targets > Signing & Capabilities. There is a tiny, light gray + at the top of the window to add capabilities. Search for “In-App Purchases” and double click the item. No other configuration is required.

Trouble getting IAP to pass product to app.
 
 
Q