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 10 and the iOS 12 SDK. For more details, see System Requirements.
- Acquire HERE Credentials.
- Launch the sample project using CocoaPods or manually from the package.
Acquire HERE SDK Credentials
Before working 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 SDK for iOS 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 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.
HelloMapAppDelegate.mfile with the following labels:
Launch the Project from the Downloaded SDK for iOS Package
You can also open a sample project from SDK for iOS 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