From 8a73f2186afb1f58fe7ea469fb426a6115ee209e Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Fri, 20 Mar 2015 16:37:49 -0500 Subject: [PATCH] #1033 - Adding CoreTelephony dependency and fixing access token setting method name. --- gyp/platform-ios.gypi | 1 + platform/ios/MGLMapView.mm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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]; } }