Das Google Maps Platform-Team aktualisiert die SDKs regelmäßig, um neue Funktionen einzuführen, Fehler zu korrigieren und die Leistung zu verbessern. Auf dieser Seite wird beschrieben, wie Sie die Abhängigkeiten von mobilen SDKs verwalten.
Welche Version soll verknüpft werden?
Erstellen Sie bei geschäftskritischen Apps eine Verknüpfung zur aktuellen Zwischenversion der verwendeten Hauptversion (X.*). Aktualisieren Sie die Verknüpfung außerdem jährlich auf die neue Hauptversion.
Wenn Sie im Laufe des Jahres neue Versionen Ihrer App veröffentlichen, können Sie neuere Zwischenversionen des Places SDK for iOS verwenden. Hierfür müssen Sie Ihre App nicht aktualisieren, da neue Zwischenversionen abwärtskompatibel sind.
Vorteile:
Falls im Places SDK for iOS Probleme auftreten, erhalten Sie gemäß der Richtlinie zur Unterstützung mobiler Betriebssystemversionen für 12 Monate nach der ursprünglichen Veröffentlichung der Hauptversion Korrekturen, die abwärtskompatibel sind. Sie profitieren daher auch von Korrekturen, ohne schnell ein Upgrade auf eine inkompatible SDK-Version durchzuführen.
Wenn Ihre App bereits auf der neuesten Version basiert, lassen sich die neuesten Verbesserungen und Funktionen ganz einfach implementieren.
Jährliche inkrementelle Updates auf die neueste Hauptversion des SDK verursachen unter Umständen weniger Aufwand beim Anpassen, Umschreiben und Testen Ihrer Anwendung als abwärtsinkompatible Änderungen, die über mehrere Hauptversionen hinweg vorgenommen werden.
Bei nicht kritischen Apps reicht eine Verknüpfung zu einer beliebigen korrigierten Version aus. Wenn Sie eine Benachrichtigung über die Einstellung dieser Version erhalten, haben Sie 12 Monate Zeit, Nutzern den aktualisierten App-Code zur Verfügung zu stellen.
Vorteile:
Es sind seltener Wartungsarbeiten erforderlich.
Neue Versionen Ihrer App unterstützen Geräte mit älteren mobilen Betriebssystemen länger (bis Sie ein Upgrade auf eine neue SDK-Version ausführen).
Project Owner mit erreichbaren E-Mail-Adressen erhalten proaktive Benachrichtigungen über Änderungen, die sich auf ihre Projekte auswirken. Weitere Informationen zu wichtigen Updates, zu Einstellungen und zu anderen Änderungen finden Sie hier.
Installation
Swift Package Manager
Das Places SDK for iOS kann über den
Swift Package Manager installiert werden. Wenn Sie das SDK hinzufügen möchten, müssen Sie alle vorhandenen Abhängigkeiten des Places SDK for iOS entfernen.
: In dieser Anleitung wird davon ausgegangen, dass Sie Xcode 15 oder höher verwenden. Die Schritte sollten aber auch für frühere Versionen von Xcode ähnlich sein.
So fügen Sie das SDK einem neuen oder vorhandenen Projekt hinzu:
Öffnen Sie Ihr Xcode-Projekt project oder workspace und gehen Sie zu File > Add Package Dependencies (Datei > Paketabhängigkeiten hinzufügen).
Wenn Sie eine bestimmte version installieren möchten, legen Sie für das Feld Dependency Rule (Abhängigkeitsregel) eine der versionsbasierten Optionen fest. Bei neuen Projekten empfehlen wir, die neueste Version anzugeben und die Option „Genaue Version“ zu verwenden. Klicken Sie anschließend auf „Paket hinzufügen“.
Prüfen Sie im Fenster Paketprodukte auswählen, ob GooglePlaces, GooglePlacesSwift oder beide Ihrem festgelegten Hauptziel hinzugefügt werden. Wenn Sie alles eingegeben haben, klicken Sie auf Paket hinzufügen.
Wenn Sie Google Places Swift über die eingestellte GitHub-URL aktualisieren
Wichtig:Die GitHub-URL für den Zugriff auf Google Places Swift hat sich ab Version 0.3.0 geändert. Wenn Sie eine Version von GooglePlacesSwift aktualisieren, auf die über die alte URL https://github.com/googlemaps/ios-places-swift-sdk zugegriffen wurde, entfernen Sie sie aus dem Bereich „Package Dependencies“ (Paketabhängigkeiten) in Xcode.
Rufen Sie den Tab Allgemein des Ziels auf, um die Installation zu überprüfen. Unter Frameworks, Bibliotheken und eingebettete Inhalte sollten die installierten Pakete angezeigt werden. Sie können das Paket und seine Version auch im Bereich Package Dependencies (Paketabhängigkeiten) des Project Navigator (Projektnavigator) prüfen.
So aktualisieren Sie die package für ein bestehendes Projekt:
Gehen Sie in Xcode zu „File > Packages > Update To Latest Package Versions“ (Datei > Pakete> Auf die neuesten Paketversionen aktualisieren).
Wenn Sie Google Places Swift über die eingestellte GitHub-URL aktualisieren
Wichtig:Die GitHub-URL für den Zugriff auf Google Places Swift hat sich ab Version 0.3.0 geändert. Wenn Sie eine Version von GooglePlacesSwift aktualisieren, auf die über die alte URL https://github.com/googlemaps/ios-places-swift-sdk zugegriffen wurde, entfernen Sie sie aus dem Bereich „Package Dependencies“ (Paketabhängigkeiten) in Xcode.
Um die Installation zu überprüfen, rufen Sie im Project Navigator den Bereich Package Dependencies auf, um das Paket und seine Version zu prüfen.
CocoaPods
Geben Sie in Ihren Abhängigkeiten immer eine Versionsnummer an, anstatt einen optimistischen Operator (~>) zu verwenden, da dies zu unvorhersehbaren und nicht reproduzierbaren Builds führen kann. Das Places SDK for iOS unterliegt der semantischen Versionsverwaltung. Neue Hauptversionen enthalten funktionsgefährdende Änderungen.
Beispiel für eine Podfile-Abhängigkeit mit 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'
end
Wartung und Upgrade
Wenn Sie die neuesten Verbesserungen nutzen möchten, sollten Sie regelmäßig nach neueren Versionen suchen und Ihre Versionsspezifikationen aktualisieren. Wenn Sie ein Update auf eine neue Hauptversion durchführen, lesen Sie in den Versionshinweisen nach, welche Änderungen nicht abwärtskompatibel sind und wie Sie Ihren Code aktualisieren können.
Zusätzlich zur Abfrage neuerer Versionen erhalten Inhaber von Google Cloud-Projekten E-Mails zu abwärtsinkompatiblen Änderungen, die sich auf ihre Projekte auswirken können. Um proaktive Benachrichtigungen über solche Änderungen zu erhalten, müssen Sie für jedes Ihrer Projekte die Rolle „Inhaber“ mit einer regelmäßig kontrollierten E-Mail-Adresse zuweisen.
[null,null,["Zuletzt aktualisiert: 2025-08-31 (UTC)."],[[["\u003cp\u003eThe Google Maps Places SDK for iOS is regularly updated with new features, bug fixes, and performance improvements, requiring developers to manage their dependencies effectively.\u003c/p\u003e\n"],["\u003cp\u003eFor 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.\u003c/p\u003e\n"],["\u003cp\u003eNon-critical apps can link to a fixed SDK version, offering less frequent maintenance but requiring updates within 12 months of a deprecation notice.\u003c/p\u003e\n"],["\u003cp\u003eInstallation can be done via Swift Package Manager or CocoaPods, ensuring you specify version numbers to maintain build consistency and avoid unexpected issues.\u003c/p\u003e\n"],["\u003cp\u003eStay informed about updates, deprecations, and backward-incompatible changes through release notes and by assigning project owners with monitored email addresses to receive proactive notifications.\u003c/p\u003e\n"]]],["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"],null,["# Places SDK for iOS versions\n\nSelect platform: [Android](/maps/documentation/places/android-sdk/versions \"View this page for the Android platform docs.\") [iOS](/maps/documentation/places/ios-sdk/versions \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/versions \"View this page for the JavaScript platform docs.\")\n\n\u003cbr /\u003e\n\n| **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](/maps/documentation/places/ios-sdk/choose-sdk).\n\nThe Google Maps Platform team regularly updates SDKs with new features, bug fixes, and\nperformance improvements. This page provides guidance on how to manage your dependencies\non mobile SDKs.\n\nWhich version to link to?\n-------------------------\n\n- **For mission-critical apps**, link to the latest dot release of the major\n version that you are using (X.\\*), and upgrade yearly to the new major version.\n\n As you release new versions of your application\n throughout the year, you may start using newer dot versions of the Places SDK for iOS. This will\n not require updates in your application as new dot versions are backward compatible.\n\n **Benefits:**\n - If you discover issues in the Places 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\n 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.\n - The latest improvements and features are easy to adopt when your app is already built on the latest version.\n - Annual incremental updates to the newest major version of the SDK may require less work to adapt, rewrite, and test your application, than having to handle backwards-incompatible changes introduced across multiple major version releases.\n\n \u003cbr /\u003e\n\n- **For non-critical apps**, link to any fixed version. When you receive a deprecation\n notice for that fixed version, you will have 12 months to make your updated app code available to\n your users.\n\n **Benefits:**\n - Less frequent maintenance work.\n - New versions of your app keep supporting users' devices running older mobile operating systems for longer (until you need to upgrade to a new SDK version).\n\n \u003cbr /\u003e\n\nProject Owners with monitored email addresses receive proactive notifications about changes that\nimpact each of their projects. [Stay\ninformed](https://developers.google.com/maps/support#staying_informed) about major updates, deprecations, and other changes.\n\nInstallation\n------------\n\n### Swift Package Manager\n\n\nThe Places 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\nremoved any existing Places SDK for iOS dependencies.\n\n| Important: These instructions assume the use of Xcode 15 or later, but should be similar for previous versions of Xcode.\n\n\u003cbr /\u003e\n\n\nTo add the SDK to a new or existing project, follow these steps:\n\n1. Open your Xcode `project` or `workspace`, then go to **File \\\u003e Add Package Dependencies**.\n2. Enter \u003chttps://github.com/googlemaps/ios-places-sdk\u003e as the URL, press **Enter** to pull in the package, and click \"Add Package\".\n3. 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\".\n4. From the **Choose Package Products** window, verify that `GooglePlaces`, `GooglePlacesSwift`, or both, will be added to your designated main target. Once complete, click **Add Package** .\n\n #### If you are updating Google Places Swift from the deprecated GitHub URL\n\n **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.\n5. To verify your installation, navigate to your target's **General** pane. In **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.\n\nTo update the `package` for an existing project, follow these steps:\n\n1. From Xcode, go to \"File \\\u003e Packages \\\u003e Update To Latest Package Versions\".\n\n #### If you are updating Google Places Swift from the deprecated GitHub URL\n\n **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.\n2. To verify your installation, go to the **Package Dependencies** section of **Project Navigator** to verify the package and its version.\n\n| **Important:** Sometimes, artifacts cannot be resolved or errors can occur, in this case select \"File \\\u003e Packages \\\u003e Reset Package Cache\".\n\n\u003cbr /\u003e\n\n### CocoaPods\n\nAlways specify a version number in your dependencies instead of using an optimistic operator\n(`~\u003e`) since that can lead to unpredictable and unrepeatable builds. The\nPlaces SDK for iOS adheres to [semantic versioning](https://semver.org),\nand new major version releases include breaking changes.\n\nAn example Podfile dependency using\n[Podfile](https://guides.cocoapods.org/using/the-podfile.html#specifying-pod-versions) syntax: \n\n```scdoc\nsource 'https://github.com/CocoaPods/Specs.git'\n\nplatform :ios, '16.0'\n\ntarget 'YOUR_APPLICATION_TARGET_NAME_HERE' do\n pod 'GooglePlaces', '10.1.0'\n pod 'GooglePlacesSwift', '10.1.0'\nend\n```\n\nMaintenance and upgrade\n-----------------------\n\nTo build with the latest improvements, regularly check for newer versions and update your version\nspecifications. If you are updating to a new major version, check the\n[release notes](/maps/documentation/places/ios-sdk/releases) for backwards-incompatible changes and how to update your code.\n\n### Swift Package Manager\n\nTo update the `package` for an existing project, follow these steps:\n\n1. To verify your installation, go to the **Package Dependencies** section of **Project Navigator** to verify the package and its version.\n\n| **Important:** Sometimes, artifacts cannot be resolved or errors can occur, in this case select \"File \\\u003e Packages \\\u003e Reset Package Cache\".\n\n\u003cbr /\u003e\n\n### Cocoapods\n\n1. Open a terminal and go to the directory containing the `Podfile`:\n\n ```text\n cd \u003cpath-to-project\u003e\n ```\n2. Run `pod outdated` to see if a newer version of the Places SDK for iOS is available.\n3. If a newer version of the SDK is found, update your `Podfile` with this new version. See [Specifying pod versions](https://guides.cocoapods.org/using/the-podfile.html#specifying-pod-versions) to learn how to set a specific version in your `Podfile`.\n4. Run `pod update`.\n5. Make any necessary changes as a result of the upgrade. See the [Release Notes](/maps/documentation/places/ios-sdk/releases) for a list of the changes in each release.\n6. Clean and rebuild your project by selecting **Product \\\u003e Clean** and then **Product \\\u003e Build**\n\n### Manual installation\n\n[Get the link to the latest source files](/maps/documentation/places/ios-sdk/start#download-sdk)\nat Installing the SDK.\n\nIn addition to polling for newer versions, Google Cloud\n[project\nowners](https://cloud.google.com/iam/docs/understanding-roles#basic-definitions) receive emails about backwards incompatible changes that may affect their projects. To\nget proactive notification about backwards incompatible changes,\n[assign\nthe owner role](https://cloud.google.com/iam/docs/granting-changing-revoking-access) with a monitored email address for each of your projects."]]