Для запуска демоверсии у вас должен быть аккаунт Google Cloud и API-ключ, активированный для Navigation SDK отделом продаж. После того, как у вас есть аккаунт Google Cloud, см. раздел Настройка проекта разработки и API-ключа .
Настройте свой проект разработки и ключ API
Создайте или откройте проект в консоли Google Cloud для использования с Maps SDK для iOS. Подождите несколько минут, пока проект не станет виден в консоли Cloud.
Включите Maps SDK для iOS в консоли Google Cloud. В проекте откройте раздел API и включите Maps SDK для iOS.
Создайте ключ API для проекта , выбрав API и службы > Учетные данные > Создать учетные данные > Ключ API .
Добавьте Maps SDK для iOS в свой ключ API. Для получения дополнительной информации см. Использование ключей API .
Попробуйте демо-приложение
Теперь вы можете загрузить, собрать и запустить демо-версию.
Чтобы запустить демо, создайте приложение в Xcode с помощью устройства iOS, подключенного к компьютеру, или используйте симулятор.
Поиск неисправностей
Показать/скрыть информацию по устранению неполадок
Выберите устройство iOS или симулятор под управлением iOS 15 или выше.
Если вы не видите доступного симулятора, добавьте пункты назначения Rosetta: в разделе Продукт > Пункт назначения > Архитектуры пунктов назначения выберите Показать пункты назначения Rosetta .
Если сборка завершается неудачей с помощью Sandbox: rsync.samba() deny , отключите User Script Sandboxing: в Build Settings > Build Options установите для User Script Sandboxing значение No .
[null,null,["Последнее обновление: 2025-06-13 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"]]