How to change StoreKit Storefront in Xcode

A step by step guide on changing the StoreKit Storefront to a different locale to test In-App Purchases or Subscriptions in XCode.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 03/24/2023 at 09:19
Last Updated on 03/27/2023 at 13:44
Two flowers that represent StoreKit and Xcode, beneath them sits the text "Change StoreKit Storefront."

A step by step guide on changing the StoreKit Storefront to a different locale to test In-App Purchases or Subscriptions in XCode.

The guide was made using our Free iOS StoreKit 2 Open Source project which is recommended for developers or business folk wishing to learn about how In-App Purchases or Subscriptions work and the code behind them.

SubscribeFree Open-Source Apple StoreKit 2 Swift Project

In order for you to be able to change StoreKit Storefront and for it to work locally, you must have a StoreKit Configuration File setup and have StoreKit testing enabled.

To learn how to do this consult the guides below.

How to setup StoreKit in XCodeHow to create a StoreKit offering in XCode or App Store ConnectHow to enable StoreKit testing in XCode

Step One: Select the StoreKit Configuration File

A screenshot of Xcode showing the StoreKit Configuration file selected. We have highlighted the location of our StoreKit Configuration File in our Open Source project.

In XCode, select the StoreKit Configuration File.

Step Two: Change StoreKit Storefront

A screenshot of Xcode highlighting the location of the Editor tab in the Xcode menu, the Default Storefront menu option and the menu that appears where you can select a storefront.

In the menu bar at the top, press Editor > Default Storefront and select the desired Storefront.

Step Three: Clean & Run

A screenshot of Xcode with a highlight on the play button.

To guarantee that the change in Storefront takes place, clean the XCode project by pressing Command + Shift + K.

Then run the project by pressing Command + R or the play button in XCode.

Looking to learn more about developing apps with StoreKit 2?

Read our comprehensive development guide linked below to learn about all the secrets behind developing In-App Purchases and Subscriptions with StoreKit 2.

Read Apple StoreKit 2 Development Guide

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