How to get StoreKit In-App Purchases and Subscriptions in Swift

A guide on gathering local StoreKit or App Store Connect products in XCode & making them available to a Swift iOS, iPadOS, MacOS, TVOS or WatchOS application.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 02/23/2023 at 09:25
Last Updated on 02/24/2023 at 08:49
Two flowers that represent StoreKit and App Store Connect. Beneath them sits the text "Get StoreKit Products."

A guide on gathering local StoreKit or App Store Connect products in XCode & making them available to a Swift iOS, iPadOS, MacOS, TVOS or WatchOS application.

Subscribe

Step One: Setup StoreKit in XCode

A screenshot of Xcode showing a StoreKit configuration file synced to App Store Connect.

To be able to gather In-App Purchases and Subscriptions (products), you must first create a StoreKit Configuration File which is either local or synced to App Store Connect.

This implies that the StoreKit Configuration File must include a product offering for the App to offer to users.

For tutorials on how to do so, consult the links below.

How to setup StoreKit in XCodeHow to create a StoreKit offering in XCode or App Store Connect

Step Two: Create the Coordinator

A screenshot of XCode showing the logs that describe that the StoreKitCoordinator was initialized successfully and that it gathered all the In-App Purchases and Subscriptions from the StoreKit Configuration File.

Create a StoreKit Coordinator (manager) that handles the gathering of products.

Please consult the tutorial below, which details how to do so, as well as how to manage all transactions associated with StoreKit.

Please note that the tutorial below does not cover consumables.

How to create a StoreKit Coordinator in SwiftWhat are Consumables?

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe