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

Unrecognized selector exception on initialization — -compassImage, +[UIFont systemFontOfSize:weight:] #5780

Closed
1ec5 opened this issue Jul 25, 2016 · 2 comments
Assignees
Labels
crash iOS Mapbox Maps SDK for iOS
Milestone

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jul 25, 2016

#5497 didn’t completely fix #5486: not only is UIFontWeightUltraLight new to iOS 8.2, but so is +[UIFont systemFontOfSize:weight:]. As a result, initializing an MGLMapView in Mapbox iOS SDK v3.3.0 causes an uncaught exception and crash on iOS 8.1 and below.

Given the severity of this issue, I created an ios-v3.3.2 milestone to expedite the fix.

/cc @friedbunny @boundsj @frederoni @incanus

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS crash labels Jul 25, 2016
@1ec5 1ec5 self-assigned this Jul 25, 2016
@1ec5 1ec5 added this to the ios-v3.3.2 milestone Jul 25, 2016
1ec5 added a commit that referenced this issue Jul 25, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Jul 26, 2016

By the way, it turns out that the crash only occurs on iOS 7.x, not on iOS 8.0 or 8.1. The API was added privately in iOS 8.0; it just wasn’t made public and documented until the iOS 8.2 SDK.

1ec5 added a commit that referenced this issue Jul 27, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Jul 27, 2016

Fixed via #5791.

@1ec5 1ec5 closed this as completed Jul 27, 2016
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
Projects
None yet
Development

No branches or pull requests

1 participant