Contents

init(contentsOf:)

Initializes the test session with a configuration file you provide through a URL.

Declaration

init(contentsOf fileURL: URL) throws

Parameters

  • fileURL:

    A file URL for a configuration file with a .storekit extension.

Discussion

The file must have a .storekit extension. Create a configuration file in Xcode by selecting File > New > File and choosing StoreKit Configuration File.

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

See Also

Initializing test sessions