danthorpe / Money

Swift value types for working with money & currency
MIT License
933 stars 91 forks source link

unexpectedly found nil of locale.mny_currencyCode #75

Open BadReese opened 7 years ago

BadReese commented 7 years ago

swift 3 and iOS 10 use money 2.0.1

I just use let money = Money(100) print(money)

then it crash at Pods/Money/Currency.swift/ init(locale:)

could you please help me?

BadReese commented 7 years ago

image

dccarmo commented 7 years ago

Same thing is happening to me, but only when running an UI Test.

abesmon commented 7 years ago

Same thing here.

fatal error: unexpectedly found nil while unwrapping an Optional value
(lldb) po locale.mny_currencySymbol
▿ Optional<String>
  - some : "¤"

(lldb) po locale
<__NSCFLocale: 0x6000000c4a60> 'ru'}