Why is SKProduct.(priceLocale as NSLocale).countryCode marked as optional? In what scenarios will countryCode be nil?

Hi,


SKProduct contains a field priceLocale that can be casted as a NSLocale for free. On NSLocale, there is an optional countryCode field. It seems like every Apple customer would be in a country. What are the scenarios where this field would be nil?



Thank you

Replies

When testing local StoreKit testing in Xcode 12, changing "Editor -> Default Localisation" to something different from English US or UK results in priceLocale present, but regionCode (countryCode) set to nil. Seems like a bug, but there you go - it is nil.