Um die Demo auszuführen, benötigen Sie ein Google Cloud-Konto und einen API-Schlüssel, der vom Vertrieb für das Navigation SDK aktiviert wurde. Wenn Sie ein Google Cloud-Konto haben, lesen Sie den Abschnitt Entwicklungsprojekt und API-Schlüssel einrichten.
Entwicklungsprojekt und API-Schlüssel einrichten
Erstellen oder öffnen Sie ein Projekt in der Google Cloud Console, das Sie mit dem Maps SDK for iOS verwenden möchten. Warten Sie einige Minuten, bis das Projekt in der Cloud Console angezeigt wird.
Maps SDK for iOS in der Google Cloud Console aktivieren
Öffnen Sie im Projekt den Bereich „APIs“ und aktivieren Sie das Maps SDK for iOS.
Erstellen Sie einen API-Schlüssel für das Projekt, indem Sie APIs & Dienste > Anmeldedaten > Anmeldedaten erstellen > API-Schlüssel auswählen.
Fügen Sie Ihrem API-Schlüssel das Maps SDK for iOS hinzu. Weitere Informationen finden Sie unter API-Schlüssel verwenden.
Demo-App ausprobieren
Sie können die Demo jetzt herunterladen, erstellen und ausführen.
Fügen Sie der Datei SDKDemoAPIKey Ihren eigenen API-Schlüssel hinzu. Sie müssen den API-Schlüssel verwenden, den Sie in den Schritten unter Entwicklungsprojekt und API-Schlüssel einrichten erstellt haben.
Um die Demo auszuführen, erstellen Sie die App in Xcode mit einem iOS-Gerät, das mit Ihrem Computer verbunden ist, oder verwenden Sie einen Simulator.
Fehlerbehebung
Informationen zur Fehlerbehebung ein- oder ausblenden
Wählen Sie ein iOS-Gerät oder einen Simulator mit iOS 15 oder höher aus.
Wenn kein Simulator verfügbar ist, fügen Sie Rosetta-Ziele hinzu: Wählen Sie unter Produkt > Ziel > Zielarchitekturen die Option Rosetta-Ziele anzeigen aus.
Wenn Ihr Build mit Sandbox: rsync.samba() deny fehlschlägt, deaktivieren Sie die Sandbox für Nutzerskripts: Setzen Sie unter Build Settings > Build Options (Build-Einstellungen > Build-Optionen) die Option User Script Sandboxing (Sandbox für Nutzerskripts) auf No (Nein).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-16 (UTC)."],[[["The Navigation SDK provides turn-by-turn navigation functionality and requires a Google Cloud account with an API key enabled for the SDK."],["You must have the Maps SDK for iOS installed in your app before integrating the Navigation SDK."],["To try the demo app, download it as a Cocoapod, add your API key, and build the app in Xcode using a compatible iOS device or simulator."],["Xcode 12 users might encounter compilation issues for the simulator which can be resolved using steps outlined in the Navigation SDK FAQ."],["For troubleshooting, use an iOS device or simulator with iOS 15 or above, enable Rosetta destinations if necessary, and disable User Script Sandboxing if encountering build failures related to rsync.samba()."]]],["The Navigation SDK requires a Google Cloud account and an API key enabled by sales. Setup involves creating a project in the Google Cloud console, enabling the Maps SDK for iOS, and generating an API key. The Maps SDK must be installed alongside the Navigation SDK. Demo code is available on GitHub in Swift and Objective-C. To run the demo, Xcode must be installed, and the API key added to the `SDKDemoAPIKey` file. Run the app using an iOS device or simulator, ensuring iOS 15 or above.\n"]]