nicklockwood / iVersion

[DEPRECATED]
http://www.charcoaldesign.co.uk/source/cocoa#iversion
Other
1.95k stars 292 forks source link

"iVersion update check failed because an unknown error occured" #86

Closed n0shake closed 8 years ago

n0shake commented 8 years ago

Console logs this error every time I start my application. Any pointers why?

antongaenko commented 8 years ago

same issue, i found that iVersion use nil for appStoreCountry iVersion is checking http://itunes.apple.com/(null)/lookup?bundleId=...

appStoreCountry is nil because this code block doesn't work correctly in my case self.appStoreCountry = [(NSLocale *)[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];

I use custom Application language when run app, switching it back to System language resolves this issue See SO answer http://stackoverflow.com/a/32569003/440465 for more details

n0shake commented 8 years ago

Thank you for this. Switching back to System language did fix this issue. Closing.