How to enable StoreKit testing in XCode

A step by step guide on enabling StoreKit Testing in Xcode.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 02/22/2023 at 12:32
Last Updated on 02/22/2023 at 18:49
Two flowers that represents StoreKit and XCode side by side. Beneath them sits the text "Enable StoreKit Testing."

A step by step guide on enabling StoreKit Testing in Xcode.

SubscribeRead Apple's Article on Setting up StoreKit testing in Xcode

Before you start

In order to be able to test StoreKit, you must have a StoreKit Configuration File setup within your project.

To learn how to do so, follow the tutorial linked below.

How to setup StoreKit in XCode

Tutorial

Step One: Edit Scheme

A screenshot of Xcode showing you how to select the Edit Scheme for the current target. Instructions below.

At the top of XCode click your active target (i.e. Starter Project) and in the menu that appears click Edit Scheme.

Step Two: Set StoreKit Configuration File

A screenshot of the Edit Scheme Xcode modal that appears when you click edit scheme. Highlighted is the Run tab on the left and within this tab, the Options tab at the top. Finally, we have highlighted where you set the StoreKit Configuration File, which is found central to the modal.

Select Run in the left menu side bar, and under the Options tab, set the StoreKit Configuration using the dropdown.

Once you're done, click Close.

Please note that you might have to clean your project folder for the changes to take place.

A screenshot of Xcode showing you that if you press Product in the menu, you can Clean Build Folder using Command + Shift + K.

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