Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

iosapp crashes on launch — -[MBXViewController bestLanguageForUser] #7399

Closed
1ec5 opened this issue Dec 13, 2016 · 1 comment
Closed

iosapp crashes on launch — -[MBXViewController bestLanguageForUser] #7399

1ec5 opened this issue Dec 13, 2016 · 1 comment
Labels
crash iOS Mapbox Maps SDK for iOS localization Human language support and internationalization
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented Dec 13, 2016

#6819 introduced a call in iosapp to -[NSLocale languageCode], which is new in iOS 10. So now iosapp crashes on launch on iOS 9:

2016-12-13 02:37:40.562 Mapbox GL[67962:9015460] -[__NSCFLocale languageCode]: unrecognized selector sent to instance 0x7a8aebe0
Thread 1Queue : com.apple.main-thread (serial)
#0	0x017fcdd0 in objc_exception_throw ()
#1	0x01d4c253 in -[NSObject(NSObject) doesNotRecognizeSelector:] ()
#2	0x01c8189d in ___forwarding___ ()
#3	0x01c8146e in __forwarding_prep_0___ ()
#4	0x000de563 in -[MBXViewController bestLanguageForUser] at /Users/mxn/hub/mapbox-gl-native/platform/ios/app/MBXViewController.m:1212
#5	0x000e2f8e in -[MBXViewController mapView:didFinishLoadingStyle:] at /Users/mxn/hub/mapbox-gl-native/platform/ios/app/MBXViewController.m:1621

/ref #6873
/cc @friedbunny @boundsj

@1ec5 1ec5 added crash iOS Mapbox Maps SDK for iOS runtime styling labels Dec 13, 2016
@1ec5 1ec5 added this to the ios-v3.4.0 milestone Dec 13, 2016
@1ec5 1ec5 added localization Human language support and internationalization and removed runtime styling labels Dec 13, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Dec 13, 2016

Fixed in #7400 on the v3.4.0 release branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS localization Human language support and internationalization
Projects
None yet
Development

No branches or pull requests

1 participant