An open API service indexing awesome lists of open source software.

https://github.com/mapbox/mapbox-navigation-native-ios


https://github.com/mapbox/mapbox-navigation-native-ios

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

        

# mapbox-navigation-native-ios

### Prerequisites

Before you can download the [Mapbox Navigation Native](https://github.com/mapbox/mapbox-navigation-native) for iOS, 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`

```bash
machine api.mapbox.com
login mapbox
password
```

## Integration

##### Swift Package Manager

###### Using SPM Package

```swift
.package(url: "[email protected]:mapbox/mapbox-navigation-native-ios.git", from: "206.1.0"),
```

##### CocoaPods

```ruby
pod 'MapboxNavigationNative', '206.1.0'
```

##### Carthage

Add the following code to your Cartfile.

```bash
binary "https://api.mapbox.com/downloads/v2/carthage/mobile-navigation-native/MapboxNavigationNative.json" == 206.1.0
binary "https://api.mapbox.com/downloads/v2/carthage/mapbox-common/MapboxCommon-ios.json" == 23.10.0
```

Then run the following command in the Terminal.
```bash
carthage update --platform ios --use-netrc
```