Skip to content

Install the SDK

Install using CocoaPods

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

  1. Install CocoaPods
  2. Install cocoapods-art plugin with command sudo gem install cocoapods-art
  3. Add JFrog Cocoapods repo: pod repo-art add telenav-cocoapods "https://telenav.jfrog.io/artifactory/api/pods/telenav-cocoapods"
  4. Configure Podfile

    • Add plugin section to the top

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

    • Specify pod 'TelenavEntitySDK', '#SDK_VERSION#' in Podfile

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
plugin 'cocoapods-art', :sources => [
  'telenav-cocoapods'
]
source 'https://cdn.cocoapods.org/'

platform :ios, '10.0'

target 'TelenavDemo' do
  use_frameworks!

  pod 'TelenavEntitySDK', '1.0.0'
  # Pods for TelenavDemo

end

Note

  1. Refer to the Release Note to get the latest SDK version.

Update to new version

To update to new version of SDK command need to be run: pod repo-art update telenav-cocoapods.

After that update version in Podfile and run pod install

This is because cocoapods-art plugin doesn't support automatic fetching of Podspec, so end-user should update it manually.