Install the SDK
To begin development of an application with DriveMotion SDK, you will need CocoaPods, cocoapods-art plugin, and correctly configured Podfile.
Preparations
-
Install CocoaPods on your computer:
Run command
1 2
sudo gem install cocoapods sudo gem install cocoapods-artFor more information follow CocoaPods Installation Guides
-
Install/Update CocoaPods repository:
Run command
or1pod repo-art add telenav-cocoapods "https://telenav.jfrog.io/artifactory/api/pods/telenav-cocoapods"to update local cocoapods repository, as well as delete Podfile.lock file.1pod repo-art update telenav-cocoapods -
Create a Podfile, and add your dependencies:
For more information follow Podfile Guides1 2 3
target 'MyAppTarget' do use_frameworks! end -
Add the following lines to the beginning of Podfile.
1 2 3
plugin 'cocoapods-art', :sources => [ 'telenav-cocoapods' ]
Configure DriveMotion
-
Add DriveMotion dependency in your target (after
use_frameworks!):pod "TelenavDriveMotion", "2.0.0" -
Run
pod repo-art update telenav-cocoapodsin your project directory.And then:
pod install. -
Open your app workspace and build.