App Store and StoreKit
Products that won't load, sandbox sign-in loops, SKError codes, StoreKit configuration files and transactions that never finish.
The purchase sheet never appears, or the purchase call never returns
Could not get confirmation scene IDWhy tapping Buy shows no App Store or Google Play sheet, or the purchase call hangs, how to find the cause in the logs, and the fix on iOS and Android.
See the fixSKErrorDomain Code=0 “An unknown error occurred” (StoreKitError.unknown)
SKErrorDomain Code=0What SKErrorDomain Code=0 and StoreKitError.unknown mean, how to read the underlying error to find the cause in a minute, and the fix for each cause.
See the fixiOS returns no products: Product.products(for:) is empty
Products array is emptyWhy StoreKit returns an empty products array on iOS, how to confirm which cause it is in a few minutes, and the fix for each one, from agreements to bundle IDs.
See the fixThe same purchase arrives on every launch, or twice (unfinished transactions)
Transaction.updates fires on every launchWhy StoreKit hands your app the same purchase at every launch or delivers it twice, how to list unfinished transactions, and how to finish them safely.
See the fixRenewals made while the app was closed never reach Transaction.updates
Transaction.updates misses renewalsWhy renewals that happen while your app is closed seem missed, what Transaction.updates does and doesn't promise, and how to read subscription state.
See the fixStoreKit configuration file ignored: the Simulator shows no products
StoreKit configuration file not workingWhy Xcode ignores your .storekit file and the Simulator returns no products, how to check the scheme in a minute, and when the file is the wrong tool.
See the fixSandbox keeps asking you to sign in, or there's no Sandbox Account in Settings
Sign in to Apple AccountWhy iOS keeps asking a sandbox tester to sign in, or doesn't show a Sandbox Apple Account in Settings, and how to set up sandbox testing that sticks.
See the fixHave an exact error message? Look it up in the index of every error, A–Z.