Search code examples
xcodemacosin-app-purchasestorekit

How do I create a .storekit file in Xcode?


I'm currently trying to set up a local environment to test in-app purchases in a macOS application.

Apple's documentation at https://developer.apple.com/documentation/xcode/setting_up_storekit_testing_in_xcode states:

To create a StoreKit configuration file, launch Xcode, then choose File > New > File. In the sheet that appears, enter “storekit” in the Filter search field, select StoreKit Configuration File...

When I filter on "storekit", there is no "StoreKit Configuration File."

What am I doing wrong? Do I need to install some kind of SDK or similar in Xcode?


Solution

  • I use Xcode 12.0 beta (12A6159) on Catalina 10.15.5. The Storekit configuration file is found and I can create and configure it.

    But the Scheme -> Run -> Option does not display a selection option to perform local testing on a macOS project, but only on IOS project.

    On the apple documentation StoreKit Test framework is labelled macOS 11.0+

    A comment on Apple Dev Forum indicate that this menu appears on a Big Sur configuration for a macOS project, but that Xcode stills connects to Sandbox. Not tried yet on Big Sur.