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

Commit

Permalink
Throw exception if our bundle can't be found
Browse files Browse the repository at this point in the history
  • Loading branch information
friedbunny committed May 23, 2017
1 parent fd597d3 commit dbde3ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions platform/darwin/src/NSBundle+MGLAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -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."];
}
}

Expand Down

0 comments on commit dbde3ca

Please sign in to comment.