Trying It Out

Try the Maps SDK demo in either Swift or Objective-C, using files from GitHub or using CocoaPods and pod try. You must have an API key to make these demos work.

Try the SDK demos using one of these two methods:

Use files from GitHub

  1. Download the code sample archive from GitHub and unpack the archive.
  2. Open a terminal window, navigate to the directory where you expanded the sample files, and drill down into the GoogleMaps directory for the language you wish to use:
    cd maps-sdk-for-ios-samples-master/GoogleMaps
    cd maps-sdk-for-ios-samples-master/GoogleMaps-Swift
  3. Run the following command:
    pod install
    open GoogleMapsDemos.xcworkspace

Use CocoaPods v1.6.1

  1. Open a terminal window and install version 1.6.1:
    sudo gem install cocoapods -v1.6.1
  2. Fetch the Google Maps files using Cocoapods:
    pod try GoogleMaps