r/iOSProgramming • u/planckscalestudio • Oct 10 '26
Question Has anyone seen StoreKit 2 prices break in Xcode debug when the language is English but the region uses a comma as the decimal separator?
Hi everyone 👋
Has anyone else hit this?
I’m testing in-app purchases with a local StoreKit configuration in Xcode. System language is English. The region is one that uses a comma as the decimal separator (the usual setup across a lot of Europe and parts of Latin America).
In that combination, StoreKit 2 product prices come back wrong, and only while running against the local configuration. A zero-decimal currency price that should be 1490 shows up as something like 1,490. That comma gets treated as a decimal separator, so the product price collapses to 1.
Point the same build at real App Store Connect products, outside of that debug StoreKit configuration, and the prices are correct.
So it looks specific to StoreKit Testing plus a comma-decimal region with an English language setting, not to the products themselves.
Has anyone else seen 1,490 turn into 1 this way? Is this a known StoreKit Testing locale bug, or is there a configuration I’m missing? Default Storefront and Default Localisation are both set to the correct region and language and synced with App Store connect, but the language on my devices is set to English.
2
u/kokerali Oct 10 '26
Is Product.price already 1 immediately after fetching the product, or does it become 1 when a formatted string is converted back to a number? Comparing Product.price and Product.displayPrice before any app-side formatting would separate those two cases.
Apple documents price as a Decimal for calculations and displayPrice as the localized string for display: https://developer.apple.com/documentation/storekit/product/price
If the Decimal is still 1490, I'd trace the string-to-number conversion rather than change the StoreKit configuration. Avoid fixing it by stripping commas, since the same character can mean different things across locales. If the Decimal itself is already wrong in a minimal one-product test, that would be useful evidence for Feedback Assistant, along with the Xcode/iOS versions and the exact language, region and StoreKit settings. I wouldn't call it a confirmed StoreKit bug from the displayed string alone.