You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Our replacement
NSLocalizedStringmethods rely on+[NSBundle mgl_frameworkBundle]to provide the Mapbox bundle that contains the localizations.When using the static Mapbox.framework:
+[NSBundle mgl_frameworkBundle]returns the app bundle (not Mapbox.framework or Mapbox.bundle).This means that localizations never load because we’re looking for them in the base app bundle, not Mapbox.bundle.
(Mapbox.bundle has existed for static builds since #4455.)
Why do images and such work?
For other resources that we load from the bundle, like images or SSL certificates, we manually append
Mapbox.bundleto the path using-[NSBundle mgl_resourcesDirectory]:This works, but seems like incorrect behavior: shouldn’t we be treating Mapbox.bundle as the bundle and not just a directory?
/cc @boundsj @1ec5