迁移到 Maps SDK for iOS(第 2 版)
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
随着 Maps SDK for iOS 第 2 版的发布,专业版方案现已与标准版方案使用相同的 SDK。专业版方案的所有功能都将继续正常运行。
请按照以下步骤更新您的现有应用:
- 在所有标头特定的导入中,将
GoogleMapsM4B 重命名为 GoogleMaps。import GoogleMapsM4B 或 #import <GoogleMapsM4B/GoogleMaps.h> 的导入将继续正常运行。
如果您之前使用 Podfile 安装 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 版,了解迁移说明。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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"]]