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
- Download the code sample archive from GitHub and unpack the archive.
- 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
orcd maps-sdk-for-ios-samples-master/GoogleMaps-Swift
- Run the following command:
pod install open GoogleMapsDemos.xcworkspace
Use CocoaPods v1.6.1
- Open a terminal window and install version 1.6.1:
sudo gem install cocoapods -v1.6.1
- Fetch the Google Maps files using Cocoapods:
pod try GoogleMaps