Contents

init(configurationFileNamed:)

Initializes the test session with the provided configuration file that you include in your application’s bundle.

Declaration

convenience init(configurationFileNamed filename: String) throws

Parameters

  • filename:

    A StoreKit configuration file that you include in your application’s bundle.

Discussion

Create a configuration file in Xcode by selecting File > New > File and choosing StoreKit Configuration File. By default, the filename is Configuration.storekit. You can include multiple configuration files in your project, but only one can be active at a time. StoreKit configuration files always have a .storekit file extension.

To return all settings in the test session to the states defined in this configuration file, call resetToDefaultState().

See Also

Initializing test sessions