Skip to main content
GuidesAPI ReferenceExamples

Setup Maps SDK for iOS

Estimated reading time: 2 minutes

In this guide you will learn how to setup Maps SDK for iOS.

Installing Maps SDK for iOS in Xcode

  1. First, get an API key token, see the Getting Started guide.

Studio

  1. Download the Maps & Navigation SDK for iOS archive file.

Studio

  1. Double-click the archive filename to unpack it. A new folder is created.
  2. Xcode should be installed to continue.
  3. Open a project in Xcode, MapView in this example.

Studio

  1. Click the project name, MapView, in the upper left. This opens MapView.xcodeproj in the right pane.
  2. Click the project name, MapView, under TARGETS.
  3. Click the General tab, and scroll down to the Frameworks, Libraries, and Embedded Content section.
  4. From the Downloads folder, where the Maps SDK for iOS was unpacked, drag the subfolder GEMKit.xcframework to the Frameworks, Libraries, and Embedded Content section in Xcode.

That’s it! Maps SDK for iOS is now installed in your project.

Configuration for development with Xcode

Click the project name, Polylines, in the upper left. This opens Polylines.xcodeproj in the right pane.

Studio

Click the project name, Polylines, under PROJECT.

Click the Build Settings tab, and scroll down to the Build Options section. Set Enable Bitcode to No.

Studio

Click the project name, Polylines, under TARGETS.

Click the Build Settings tab, and scroll down to the Build Options section. Set Enable Bitcode to No.

Set your API Key/Token

Studio

In any of the Maps SDK for iOS example projects, click the AppDelegate.swift file and scroll down to the getProjectApiToken() function, and replace YOUR_TOKEN with your actual Magic Lane API Key token obtained above, see the Getting Started guide.

The project is now ready to build and run!