summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.mm
diff options
context:
space:
mode:
authorJason Wray <friedbunny@users.noreply.github.com>2017-05-23 13:24:16 -0400
committerGitHub <noreply@github.com>2017-05-23 13:24:16 -0400
commit9b11bb98fa855da9d845ed01e59451943bb29af4 (patch)
tree48b290663e9f4cbeed09483d20f0558b6ccdde2f /platform/ios/src/MGLMapView.mm
parentc9de6cdb6c8b4a640c10940adbd76ed508900022 (diff)
downloadqtlocation-mapboxgl-9b11bb98fa855da9d845ed01e59451943bb29af4.tar.gz
[ios] Fallback to Mapbox.bundle as the framework bundle (#9074)
Fixes an issue where localizations could not be found when using static builds. Throws exception if our bundle can't be found.
Diffstat (limited to 'platform/ios/src/MGLMapView.mm')
-rw-r--r--platform/ios/src/MGLMapView.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm
index 720c1d506a..9a27cf24c6 100644
--- a/platform/ios/src/MGLMapView.mm
+++ b/platform/ios/src/MGLMapView.mm
@@ -5293,8 +5293,7 @@ public:
NSString *extension = imageName.pathExtension.length ? imageName.pathExtension : @"png";
NSBundle *bundle = [NSBundle mgl_frameworkBundle];
NSString *path = [bundle pathForResource:imageName.stringByDeletingPathExtension
- ofType:extension
- inDirectory:bundle.mgl_resourcesDirectory];
+ ofType:extension];
if ( ! path)
{
[NSException raise:@"Resource not found" format: