From dbde3cabba29290c87cac08c07ea5aef0697eeb6 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Tue, 23 May 2017 00:49:17 -0400 Subject: [PATCH] Throw exception if our bundle can't be found --- platform/darwin/src/NSBundle+MGLAdditions.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/darwin/src/NSBundle+MGLAdditions.m b/platform/darwin/src/NSBundle+MGLAdditions.m index e863b0def74..ad122831ba9 100644 --- a/platform/darwin/src/NSBundle+MGLAdditions.m +++ b/platform/darwin/src/NSBundle+MGLAdditions.m @@ -13,6 +13,9 @@ + (instancetype)mgl_frameworkBundle { NSString *bundlePath = [bundle pathForResource:@"Mapbox" ofType:@"bundle"]; if (bundlePath) { bundle = [self bundleWithPath:bundlePath]; + } else { + [NSException raise:@"MGLBundleNotFoundException" format: + @"The Mapbox framework bundle could not be found. If using the Mapbox iOS SDK as a static framework, make sure that Mapbox.bundle is copied into the root of the app bundle."]; } }