Navigation SDK به عنوان یک کتابخانه ثابت در دسترس است. برای اطلاعات بیشتر، به مستندات مرجع SDK پیمایش مراجعه کنید.
قبل از شروع
برای اجرای نسخه نمایشی، باید یک حساب Google Cloud و یک کلید API برای Navigation SDK با فروش فعال داشته باشید. هنگامی که یک حساب Google Cloud دارید، به تنظیم پروژه توسعه و کلید API خود مراجعه کنید.
پروژه توسعه و کلید API خود را تنظیم کنید
پروژه ای را در کنسول Google Cloud ایجاد یا باز کنید تا با Maps SDK برای iOS استفاده کنید. چند دقیقه صبر کنید تا پروژه در کنسول Cloud قابل مشاهده باشد.
Maps SDK برای iOS را در کنسول Google Cloud فعال کنید. در پروژه، بخش APIs را باز کنید و Maps SDK را برای iOS فعال کنید.
با انتخاب APIs & Services > Credentials > Create credentials > API key ، یک کلید API برای پروژه ایجاد کنید .
Maps SDK برای iOS را به کلید API خود اضافه کنید. برای اطلاعات بیشتر، به استفاده از کلیدهای API مراجعه کنید.
برنامه آزمایشی را امتحان کنید
اکنون می توانید نسخه ی نمایشی را دانلود، بسازید و اجرا کنید.
دستگاه یا شبیهساز iOS دارای iOS 15 یا بالاتر را انتخاب کنید.
اگر شبیهساز موجود نمیبینید، مقصدهای روزتا را اضافه کنید: در Product > Destination > Destination Architectures ، Show Rosetta Destinations را انتخاب کنید.
اگر ساخت شما با Sandbox با شکست مواجه شد: rsync.samba() deny ، User Script Sandboxing را غیرفعال کنید: در Build Settings > Build Options ، User Script Sandboxing را روی No تنظیم کنید.
تاریخ آخرین بهروزرسانی 2025-02-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-02-25 بهوقت ساعت هماهنگ جهانی."],[[["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"]]