-
Notifications
You must be signed in to change notification settings - Fork 382
Open
Labels
Description
Describe the bug
Xcode shows “Switch must be exhaustive” in PurchasesError.swift getStoreKitErrorInfoIfAny
and StoreKitError+Extensions.swift, even though @unknown
default is present. They need the '.unsupported' case.
- Environment
- Platform:
- SDK version:
- StoreKit version:
- StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with
.with(storeKitVersion: .storeKit1)
) - StoreKit 2 (default on versions >=5.0.0)
- StoreKit 1 (default on versions <5.0.0. Can be enabled in versions >=5.0.0 with
- OS version:
- Xcode version: 16.4
- Device and/or simulator:
- Device
- Simulator
- Environment:
- Sandbox
- TestFlight
- Production
- How widespread is the issue. Percentage of devices affected.
- Debug logs
Switch must be exhaustive
-
Steps to reproduce
The compiler expects all enum cases to be explicitly handled, even with@unknown
default. -
Other information
May require replacing@unknown
default -
Additional context
Likely surfaced by stricter checks in recent Xcode versions or SDK updates.