Run the Sample Application
This tutorial provides instructions on how to run the Objective-C and Swift sample applications to render a map on an iOS device. The tutorial assumes you are using Xcode 9 and the iOS 11 SDK. For more details, see System Requirements.
- Check HERE Credentials.
- Launch the sample project using CocoaPods or manually from the package.
Acquire HERE SDK Credentials
Before working with with HERE SDK, you need to acquire a set of credentials by registering your application on http://developer.here.com. Each application requires a unique set of credentials.
Launch the Project Using Cocoapods
You can start trying a sample HERE iOS SDK project by using Cocoapods. CocoaPods is an open source dependency manager for Objective-C and Swift Xcode projects. To get started with using CocoaPods on macOS, follow the instructions in the Getting Started guide on CocoaPods.org.
Once you have configured CocoaPods in your development environment, try the tutorial project by using the following command.
pod try HEREMapsStarter
After invoking this command, you are prompted to choose between an Objective-C or a Swift sample project. Make a selection, and the script opens a project in Xcode, with HERE SDK dependencies already configured. You can then follow the instructions in the project
README.txt to add app credentials and run the app.
Launch the Project from the Downloaded HERE iOS SDK Package
You can also open a sample project from the HERE iOS SDK package, which you can download from http://developer.here.com. The Xcode projects are available in the
sample-apps folder. To run the project, double-click on
SwiftHelloMap.xcodeproj, then follow the instructions in the