Stay organized with collections Save and categorize content based on your preferences.
Note: The Places SDK for iOS features that are available in your app are determined by a combination of the SDK version number that you specify in your app configuration and the APIs enabled on your API key. For more information, see Choose your SDK version.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 Places SDK for iOS. This will not require updates in your application as new dot versions are backward compatible.
Benefits:
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:
Project Owners with monitored email addresses receive proactive notifications about changes that impact each of their projects. Stay informed about major updates, deprecations, and other changes.
Installation Swift Package ManagerThe Places SDK for iOS can be installed via Swift Package Manager. To add the SDK, ensure you have removed any existing Places SDK for iOS dependencies.
Important: These instructions assume the use of Xcode 15 or later, but should be similar for previous versions of Xcode.To add the SDK to a new or existing project, follow these steps:
project
or workspace
, then go to File > Add Package Dependencies.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".GooglePlaces
, GooglePlacesSwift
, or both, will be added to your designated main target. Once complete, click Add Package. If you are updating Google Places Swift from the deprecated GitHub URL
Important: The GitHub URL to access Google Places Swift has changed starting with version 0.3.0. If you are updating a version of GooglePlacesSwift that was accessed through the old URL, https://github.com/googlemaps/ios-places-swift-sdk
, remove it from your Xcode's package dependencies section.
To update the package
for an existing project, follow these steps:
Important: The GitHub URL to access Google Places Swift has changed starting with version 0.3.0. If you are updating a version of GooglePlacesSwift that was accessed through the old URL, https://github.com/googlemaps/ios-places-swift-sdk
, remove it from your Xcode's package dependencies section.
Always specify a version number in your dependencies instead of using an optimistic operator (~>
) since that can lead to unpredictable and unrepeatable builds. The Places SDK for iOS adheres to semantic versioning, and new major version releases include breaking changes.
An example Podfile dependency using Podfile syntax:
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '16.0' target 'YOUR_APPLICATION_TARGET_NAME_HERE' do pod 'GooglePlaces', '10.1.0' pod 'GooglePlacesSwift', '10.1.0' endMaintenance 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 for backwards-incompatible changes and how to update your code.
Swift Package ManagerTo update the package
for an existing project, follow these steps:
Open a terminal and go to the directory containing the Podfile
:
cd <path-to-project>
pod outdated
to see if a newer version of the Places SDK for iOS is available.Podfile
with this new version. See Specifying pod versions to learn how to set a specific version in your Podfile
.pod update
.Get the link to the latest source files at Installing the SDK.
In addition to polling for newer versions, Google Cloud project owners receive emails about backwards incompatible changes that may affect their projects. To get proactive notification about backwards incompatible changes, assign the owner role with a monitored email address for each of your projects.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["The Google Maps Places SDK for iOS is regularly updated with new features, bug fixes, and performance improvements, requiring developers to manage their dependencies effectively."],["For critical apps, prioritize linking to the latest dot release within your major SDK version and upgrade yearly to minimize disruption from backward-incompatible changes while benefiting from continuous improvements."],["Non-critical apps can link to a fixed SDK version, offering less frequent maintenance but requiring updates within 12 months of a deprecation notice."],["Installation can be done via Swift Package Manager or CocoaPods, ensuring you specify version numbers to maintain build consistency and avoid unexpected issues."],["Stay informed about updates, deprecations, and backward-incompatible changes through release notes and by assigning project owners with monitored email addresses to receive proactive notifications."]]],["The core content details managing dependencies for the Places SDK for iOS. For critical apps, it advises linking to the latest dot release and upgrading yearly. For non-critical apps, linking to any fixed version is acceptable, with a 12-month notice for deprecations. Installation involves using Swift Package Manager or CocoaPods, with detailed steps provided. Regular updates are encouraged, checking release notes for backward-incompatible changes. Project owners receive emails about such changes. Manual installation is also available via a provided link.\n"]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4