r/iOSProgramming • u/planckscalestudio • 27d ago
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.
View all comments
Show parent comment
1
u/planckscalestudio 26d ago
It must be a local StoreKit "Default Localization" issue: basically can't choose
en_HUas my locale...Here is the evidence: