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

Load categories in MGLAccountManager for Fabric #3847

Merged
merged 1 commit into from
Feb 9, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Feb 8, 2016

These categories need to be loaded explicitly so that they’re linked into the application binary. In the dynamic framework, they’re loaded inside the InitializeMapbox() framework initializer; for static frameworks, we recommend setting the -ObjC flag. Fabric uses the static framework without setting the -ObjC flag, so these redundant calls are needed. In principle, InitializeMapbox() could be folded into the static framework too, obviating this code. That’ll have to happen in an upcoming release when we can get enough testing.

/ref #3183 #2966 #3113
/cc @friedbunny @boundsj

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS build labels Feb 8, 2016
@1ec5 1ec5 self-assigned this Feb 8, 2016
@1ec5 1ec5 added this to the ios-v3.1.0 milestone Feb 8, 2016
@1ec5 1ec5 force-pushed the 1ec5-load-categories branch 2 times, most recently from 94e256a to 87521f3 Compare February 8, 2016 03:46
These categories need to be loaded explicitly so that they’re linked into the application binary. In the dynamic framework, they’re loaded inside the InitializeMapbox() framework initializer; for static frameworks, we recommend setting the -ObjC flag. Fabric uses the static framework without setting the -ObjC flag, so these redundant calls are needed.
@1ec5 1ec5 force-pushed the 1ec5-load-categories branch from 87521f3 to 35fdf32 Compare February 9, 2016 22:56
@1ec5 1ec5 modified the milestones: ios-v3.1.0, ios-v3.1.1 Feb 9, 2016
@1ec5 1ec5 merged commit 35fdf32 into release-ios-v3.1.0 Feb 9, 2016
@1ec5 1ec5 removed the in progress label Feb 9, 2016
@1ec5 1ec5 deleted the 1ec5-load-categories branch February 9, 2016 23:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant