Select platform: [Android](https://developers.google.com/maps/documentation/android-sdk/versions.md.txt "View this page for the Android platform docs.") [iOS](https://developers.google.com/maps/documentation/ios-sdk/versions.md.txt "View this page for the iOS platform docs.") [JavaScript](https://developers.google.com/maps/documentation/javascript/versions.md.txt "View this page for the JavaScript platform docs.")

<br />

The Google Maps Platform team regularly updates SDKs with new features, bug fixes, and
performance improvements. This page provides guidance on how to manage your dependencies
on mobile SDKs.

## Which version to link to?

- **For mission-critical apps**, link to the latest dot release of the major
  version that you are using (X.\*), and upgrade yearly to the new major version.

  As you release new versions of your application
  throughout the year, you may start using newer dot versions of the Maps SDK for iOS. This will
  not require updates in your application as new dot versions are backward compatible.

  **Benefits:**
  - If you discover issues in the Maps SDK for iOS, fixes will be provided in a backward-compatible way for 12 months after the initial release of the major version, per the [Mobile support
    policy](https://developers.google.com/maps/software-support#sdk-support). You will not need to urgently upgrade to an *incompatible* SDK version to benefit from fixes.
  - The latest improvements and features are easy to adopt when your app is already built on the latest version.
  - Annual incremental updates to the newest major version of the SDK might require less work to adapt, rewrite, and test your application than having to handle backward-incompatible changes introduced across multiple major version releases.
- **For non-critical apps**, link to any fixed version. When you receive a deprecation
  notice for that fixed version, you will have 12 months to make your updated app code available to
  your users.

  **Benefits:**
  - Less frequent maintenance work.
  - New versions of your app keep supporting users' devices running earlier mobile operating systems for longer (until you need to upgrade to a new SDK version).

Project owners with monitored email addresses receive proactive notifications about changes that
affect each of their projects. [Stay
informed](https://developers.google.com/maps/support#staying_informed) about major updates, deprecations, and other changes.

## Installation

### Swift Package Manager


The Maps SDK for iOS can be installed via [Swift Package Manager](https://developer.apple.com/documentation/xcode/swift-packages). To add the SDK, ensure you have
removed any existing Maps SDK for iOS dependencies.


To add the SDK to a new or existing project, follow these steps:

1. Open your Xcode `project` or `workspace`, then go to **File \> Add Package Dependencies**.
2. Enter <https://github.com/googlemaps/ios-maps-sdk> as the URL, press **Enter** to pull in the package, and click "Add Package".
3. To install a specific `version`, set the **Dependency Rule** field to one of the version-based options. For new projects, we recommend specifying the latest version and using the "Exact Version" option. Once complete, click "Add Package".
4. From the **Choose Package Products** window, verify `GoogleMaps` (for versions earlier than 9.0.0, verify `GoogleMaps`, `GoogleMapsBase`, and `GoogleMapsCore`) will be added to your designated `main` target. Once complete, click "Add Package".
5. To verify your installation, navigate to your target's **General** pane. In the **Frameworks, Libraries, and Embedded Content** you should see the installed packages. You can also view the "Package Dependencies" section of "Project Navigator" to verify the package and its version.

To update the `package` for an existing project, follow these steps:

1. **If you are upgrading from a version earlier than 9.0.0,** you must remove
   the following dependencies: `GoogleMapsBase`, `GoogleMapsCore`, and
   `GoogleMapsM4B` after upgrading. Do not remove the dependency for
   `GoogleMaps`. For more information, see the
   [Version 9.0.0 Release Notes](https://developers.google.com/maps/documentation/ios-sdk/release-notes-archive.md.txt#May_20_2024).

   From your Xcode project configuration settings, find **Frameworks, Libraries,
   and Embedded Content** . Use the **minus sign(-)** to remove the following framework:
   - `GoogleMapsBase` (Only for upgrades from versions earlier than 9.0.0)
   - `GoogleMapsCore` (Only for upgrades from versions earlier than 9.0.0)
   - `GoogleMapsM4B` (Only for upgrades from versions earlier than 9.0.0)
2. From Xcode, go to **File \> Packages \> Update To Latest Package Versions**.
3. To verify your installation, go to the **Package Dependencies** section of **Project Navigator** to verify the package and its version.

**Important:** Sometimes, artifacts cannot be resolved or errors can occur, in this case select "File \> Packages \> Reset Package Cache".

<br />


To remove existing Maps SDK for iOS dependencies added using
`CocoaPods`, follow these steps:

1. Close your Xcode workspace. Open terminal and execute the following command:

   ```swift
   sudo gem install cocoapods-deintegrate cocoapods-clean
   pod deintegrate
   pod cache clean --all
   ```
2. Remove the `Podfile`, `Podfile.resolved` and the Xcode `workspace` if you are not using them for anything other than CocoaPods.

## Maintenance and upgrade

To build with the latest improvements, regularly check for newer versions and update your version
specifications. If you are updating to a new major version, check the
[release notes](https://developers.google.com/maps/documentation/ios-sdk/releases) for backward-incompatible changes and how to update your code.

### Swift Package Manager

<br />

```swift


To update the `package` for an existing project, follow these steps:


  

    
    
    
1. 
         To verify your installation, go to the Package Dependencies section of Project Navigator
         to verify the package and its version.
       

  
  
  
    Important: Sometimes, artifacts cannot be resolved or errors can occur, 
    in this case select "File > Packages > Reset Package Cache".
  

<br />



```

<br />

<br />

<br />

### Manual installation

[Get the link to the latest source files](https://developers.google.com/maps/documentation/ios-sdk/start#download-sdk)
at Installing the SDK.

<br />

In addition to polling for newer versions, Google Cloud
[project
owners](https://cloud.google.com/iam/docs/roles-overview#basic) receive emails about backward-incompatible changes that might affect their projects. To
get proactive notification about backward-incompatible changes,
[assign
the owner role](https://cloud.google.com/iam/docs/granting-changing-revoking-access) with a monitored email address for each of your projects.