遷移至 Maps SDK for iOS 第 2 版
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Maps SDK for iOS 第 2 版發布後,現在付費方案採用的 SDK 與標準方案相同。所有付費功能仍將照常運作。
請按照下列步驟更新您現有的應用程式:
- 在所有標頭專用的匯入內容中,將
GoogleMapsM4B 重新命名為 GoogleMaps。import GoogleMapsM4B 或 #import <GoogleMapsM4B/GoogleMaps.h> 的匯入內容仍會照常運作。
如果您先前使用 Podfiles 安裝 SDK:
- 將 Podfile 更新為參照
GoogleMaps/M4B CocoaPod,而非 Google-Maps-iOS-SDK-for-Business CocoaPod。
- 如果您已將
Google-Maps-iOS-SDK-for-Business 的依附元件固定為比第 2 版舊的版本,請從 Podfile 移除這項限制。
如果您先前是手動安裝 SDK:
- 從專案中移除舊的 GoogleMapsM4B.framework 和 GoogleMaps.bundle,然後按照手動安裝 SDK 指示操作 (不使用 CocoaPods)。詳情請參閱iOS 版付費方案入門指南。
如果您使用 Places API,請參閱「遷移至 Places SDK for iOS 第 2 版」一文,瞭解遷移操作說明。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2023-08-02 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2023-08-02 (世界標準時間)。"],[],["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"]]