Follow these instructions to upgrade an existing project to the most recent version of the Maps SDK for iOS.
Note: Versions 1.9.2 and earlier of the Maps SDK for iOS were available as a zip file containing a static framework. There was also the option to install recent versions from a CocoaPods pod. From version 1.10.0 onwards, the Maps SDK for iOS is available for installation via CocoaPods or Carthage.
Previously installed the Maps SDK for iOS from the GoogleMaps
pod
- Run
pod outdated
to see if a newer version of the Maps SDK for iOS is available. You can also refer to the release notes. - If a newer version of the SDK is found, update your
Podfile
with this new version. See Specifying pod versions to learn how to set a specific version in yourPodfile
. - Run
pod update
. - Make any necessary changes as a result of the upgrade. See the release notes for a list of the changes in each release.
- Clean and rebuild your project by selecting Product > Clean and then Product > Build.
Previously installed the Maps SDK for iOS using Carthage
- Run
carthage outdated
to see if a newer version of the Maps SDK for iOS is available. You can also refer to the release notes. - If a newer version of the SDK is found, update your
Cartfile
with this new version. See Version requirements to learn how to set a specific version in yourCartfile
. - Run
carthage update
. - Make any necessary changes as a result of the upgrade. See the release notes for a list of the changes in each release.
- Clean and rebuild your project by selecting Product > Clean and then Product > Build.
Previously installed the Maps SDK for iOS from a zip file containing a static framework
- Remove all references to the previous framework from your Xcode project.
- Follow the instructions in the note above to install the Maps SDK for iOS using CocoaPods.
- Make any necessary changes as a result of the upgrade. See the release notes for a list of the changes in each release.
- Clean and rebuild your project by selecting Product > Clean and then Product > Build.
Previously installed the Maps SDK for iOS from the Google-Maps-iOS-SDK
pod
- Change your pod name to
GoogleMaps
. - Run
pod install
. - Make any necessary changes as a result of the upgrade. See the release notes for a list of the changes in each release.
- Clean and rebuild your project by selecting Product > Clean and then Product > Build.