I'm working on a Swift package to handle my in-app purchases (simple and basic). I'd like to properly preview my views, and part of the model relies on the StoreKit Product struct. Option 1: mocking the Product does not seem to be an option. Option 2: use a StoreKit config file to get mocked products directly from StoreKit. I was confident with the latter, but Xcode or Swift packages do not seem to allow me to create one. Any good proposals/ideas? #SwiftUI #SwiftPackage #StoreKit
Writing things down made me realize that I forgot to try a simple task: manually copying an existing StoreKit configuration into the package using Finder. It will then appear in Xcode and can be selected in the target configuration. I am putting it down here in case it ever helps anyone. #swiftui #SwiftPackage #StoreKit