NEW: Learn to build the incredible iOS 15 Weather app 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

   

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

1      

I found the reason when I rewatch video:

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

   

Hacking with Swift is sponsored by Essential Developer

SPONSORED Only until this Sunday, December 12th, you can join a free crash course to learn advanced techniques for testing new and legacy Swift code — it's the fast track to becoming a complete Senior iOS Developer!

Click to learn more

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

Reply to this topic…

You need to create an account or log in to reply.

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.