Skip to content

Latest commit

 

History

History

CocoaPods

Development setup

Once you have gained access, set up the development environment by following:

  1. We recommend using rbenv to handle ruby selection/installation.

    1. Install rbenv
    brew install rbenv
    1. Clone the tomtom-navigation-ios-examples repository
    git clone [email protected]:tomtom-international/tomtom-navigation-ios-examples.git
    1. Change directory to the related folder of the recently cloned repository and install ruby via rbenv
    cd tomtom-navigation-ios-examples/CocoaPods
    rbenv install
    1. Load rbenv to your shell
    echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc

    Above command assumes that zsh is being used. If a different shell is being used, then you can find commands for most common shells in rbenv documentation.

    1. Update bundler
    gem install bundler
    1. reload your shell so the rbenv can extend PATH accordingly.
  2. Install project's gem dependencies via bundler

    bundle install
  3. Add a reference to the CocoaPods private repository:

    bundle exec pod repo-art add tomtom-sdk-cocoapods "https://repositories.tomtom.com/artifactory/api/pods/cocoapods"
  4. Install the dependencies by executing the following command in the project folder.

    bundle exec pod install
  5. To update the SDK version, run the command:

    bundle exec pod repo-art update tomtom-sdk-cocoapods
  6. Open the project’s xcworkspace and start developing your awesome application.