diff --git a/gyp/platform-ios.gypi b/gyp/platform-ios.gypi index 738a4afa5..317b37b9b 100644 --- a/gyp/platform-ios.gypi +++ b/gyp/platform-ios.gypi @@ -45,6 +45,7 @@ 'ldflags': [ '-framework CoreGraphics', '-framework CoreLocation', + '-framework CoreTelephony', '-framework ImageIO', '-framework GLKit', '-framework MobileCoreServices', diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 981007df2..d6e7a16a2 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -170,7 +170,7 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr; if (accessToken) { mbglMap->setAccessToken((std::string)[accessToken cStringUsingEncoding:[NSString defaultCStringEncoding]]); - [[MGLMapboxEvents sharedManager] setAccessToken:accessToken]; + [[MGLMapboxEvents sharedManager] setToken:accessToken]; } }