GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

IAP 2: always loading....

Forums > Videos

Hi

At 26:35, Paul runs a demo, when he tried to create 4th project, the IAP sheet shows.

Mine shows too, but staying in "Loading...." forever.

If I set breakpoint, it seems productsRequest in UnlockManager.swift has never been called, so it has never change to .loaded state.

Does anyone know what could be wrong?

Thank you very much!

p.s. I haven't fully followed MVVM2, but it compiled ok.

I have verified productID is matched in configuration.storekit and Unlockmanager.swift

5      

I would check your code again as when i did worked fine. So maybe an error in your code.

6      

I found the reason when I rewatch video:

I didn't choose "Configuration.storekit" in Run scheme.

5      

Hacking with Swift is sponsored by Alex.

SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!

Try for free!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.