Bermigrasi ke Maps SDK for iOS, versi 2
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dengan dirilisnya Maps SDK for iOS versi 2, Premium Plan
kini menggunakan SDK yang sama seperti Standard Plan. Semua fitur Premium Plan
akan terus berfungsi sebagaimana mestinya.
Selesaikan langkah-langkah berikut untuk mengupdate aplikasi Anda saat ini:
- Ganti nama
GoogleMapsM4B
menjadi GoogleMaps
di semua impor khusus header.
Impor import GoogleMapsM4B
atau #import <GoogleMapsM4B/GoogleMaps.h>
akan terus berfungsi seperti sebagaimana mestinya.
Jika sebelumnya Anda telah menginstal SDK menggunakan Podfile:
- Perbarui Podfile Anda untuk merujuk CocoaPods
GoogleMaps/M4B
, bukan CocoaPods Google-Maps-iOS-SDK-for-Business
.
- Jika Anda telah menyematkan dependensi pada
Google-Maps-iOS-SDK-for-Business
ke
versi yang lebih lama dari versi 2, hapus pembatasan ini dari Podfile Anda.
Jika sebelumnya Anda telah menginstal SDK secara manual:
- Hapus GoogleMapsM4B.framework dan GoogleMaps.bundle lama dari
project Anda, lalu ikuti petunjuk penginstalan SDK secara manual (tanpa
CocoaPods). Untuk mengetahui detailnya, baca Memulai Premium Plan di iOS.
Jika Anda menggunakan Places API, lihat
Bermigrasi ke Places SDK for iOS, versi 2
untuk petunjuk migrasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2023-09-14 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2023-09-14 UTC."],[[["The Premium Plan now uses the same Maps SDK for iOS as the Standard Plan, maintaining all existing functionalities."],["To update, rename header imports from `GoogleMapsM4B` to `GoogleMaps`, update Podfile references, and remove old framework files if installed manually."],["Users previously installing via Podfiles should update their Podfile to reference the `GoogleMaps/M4B` CocoaPod instead of `Google-Maps-iOS-SDK-for-Business` and remove any version restrictions."],["For manual installations, remove old frameworks and follow the new manual installation instructions provided in the documentation."],["Places API users should refer to a separate migration guide for the Places SDK for iOS, version 2."]]],["Version 2 of the Maps SDK for iOS unifies Premium and Standard Plans under the same SDK. To update, rename `GoogleMapsM4B` to `GoogleMaps` in header imports. For Podfile users, replace `Google-Maps-iOS-SDK-for-Business` with `GoogleMaps/M4B` and remove any version restrictions. Manual installations require removing the old `GoogleMapsM4B.framework` and `GoogleMaps.bundle` then following new installation instructions. If using the Places API, consult the migration guide.\n"]]