Download and unzip the latest releasemapbox-ios-sdk-4.0.2-dynamic.zip
Embed the framework
Mapbox.framework into your project's Embedded Binaries section in the project editor. In the sheet that appears, make sure Copy items if needed is checked, then click Finish.
In the Build Phases tab of the project editor, click the + button at the top and select “New Run Script Phase”. Enter the following code into the script text field: