init(contentsOf:)
Initializes the test session with a configuration file you provide through a URL.
Declaration
init(contentsOf fileURL: URL) throwsParameters
- fileURL:
A file URL for a configuration file with a .
storekitextension.
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().