mapbox-common-ios
MapboxCommon provides common functionality among all Mapbox SDKs including:
To learn more about these SDKs please visit their repos on GitHub and the documentation at https://docs.mapbox.com/.
Prerequisites
Before you can download the Mapbox Common SDK, you need to create a token with DOWNLOAD:READ
scope.
Go to https://account.mapbox.com and click “Create token”
SPM, CocoaPods and Carthage
Insert or append the following to ~/.netrc
machine api.mapbox.com
login mapbox
password <TOKEN WITH DOWNLOAD:READ SCOPE>
Integration
Swift Package Manager
Using Xcode
Detailed Flow
Using SPM Package 📱🖥💻
.package(url: "https://github.com/mapbox/mapbox-common-ios.git", from: "23.6.0"),
CocoaPods 📱🖥💻
pod 'MapboxCommon', '23.6.0'
Carthage 📱
Add the following code to your Cartfile.
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon.json" == 23.6.0
Then run the following command in the Terminal.
carthage update --platform ios --use-netrc
mapbox-common-ios
MapboxCommon provides common functionality among all Mapbox SDKs including:
To learn more about these SDKs please visit their repos on GitHub and the documentation at https://docs.mapbox.com/.
Prerequisites
Before you can download the Mapbox Common SDK, you need to create a token with
DOWNLOAD:READ
scope. Go to https://account.mapbox.com and click “Create token”SPM, CocoaPods and Carthage
Insert or append the following to
~/.netrc
Integration
Swift Package Manager
Using Xcode
Detailed Flow
Using SPM Package 📱🖥💻
CocoaPods 📱🖥💻
Carthage 📱
Add the following code to your Cartfile.
Then run the following command in the Terminal.