Skip to content

Install the SDK

To begin development of an application with DriveMotion SDK, you will need CocoaPods, cocoapods-art plugin, and correctly configured Podfile.

Note

DriveMotion SDK 3.21.0 and later require iOS 15.0 or later. Set your app deployment target and Podfile platform to iOS 15.0 before upgrading.

Preparations

  1. Install CocoaPods on your computer:

    Run command

    1
    2
    sudo gem install cocoapods
    sudo gem install cocoapods-art
    

    For more information follow CocoaPods Installation Guides

  2. Install/Update CocoaPods repository:

    Run command

    1
    pod repo-art add telenav-cocoapods "https://telenav.jfrog.io/artifactory/api/pods/telenav-cocoapods"
    
    or
    1
    pod repo-art update telenav-cocoapods
    
    to update local cocoapods repository, as well as delete Podfile.lock file.

  3. Create a Podfile, and add your dependencies:

    1
    2
    3
    target 'MyAppTarget' do
        use_frameworks!
    end
    
    For more information follow Podfile Guides

  4. Add the following lines to the beginning of Podfile.

    1
    2
    3
    plugin 'cocoapods-art', :sources => [
        'telenav-cocoapods'
    ]
    

Configure DriveMotion

  1. Add DriveMotion dependency in your target (after use_frameworks!):

    pod "TelenavDriveMotion", "2.0.0"

  2. Run pod repo-art update telenav-cocoapods in your project directory.

    And then: pod install .

  3. Open your app workspace and build.