# AMap 高德定位 SDK | 项 | 值 | |---|---| | AMapFoundationKit | 1.9.0+foundation.1b6fcf5 | | AMapLocationKit | 2.12.0+loc.4f55976 | | 来源 | [高德开放平台 iOS 定位 SDK 下载页](https://lbs.amap.com/api/ios-location-sdk/download) | | 路径 | `Vendor/AMap/AMapFoundationKit.framework` / `Vendor/AMap/AMapLocationKit.framework` | | 架构 | fat(x86_64 + arm64,单 `.framework` 同时支持设备 + 模拟器) | | 模块名 | `AMapFoundationKit` / `AMapLocationKit` | | 引入日期 | 2026-06-22 | ## 工程接入步骤(用户在 Xcode 手动) > ⚠️ 高德官方发布的还是旧式 fat `.framework`(不是 `.xcframework`)。Xcode 26+ 接受 fat `.framework`,但若构建报「Could not find module ... for 'arm64-apple-ios-simulator'」可能要先用 `xcodebuild -create-xcframework` 转封。先按下面流程跑,遇到问题再处理。 1. Project Navigator → 选中 ylgamehall target → General → Frameworks, Libraries, and Embedded Content 2. 点 `+` → Add Other → Add Files → 把 `Vendor/AMap/AMapFoundationKit.framework` 和 `AMapLocationKit.framework` 一起加入 3. 两个都设为 **Do Not Embed**(高德 fat `.framework` 是静态库,不能 Embed;Embed 会触发链接器对 `__OBJC` 段重复符号错误) 4. Build Settings → Framework Search Paths 自动会被 Xcode 写入 `$(PROJECT_DIR)/Vendor/AMap` 5. Clean Build Folder 后 BuildProject 接入完毕后,源码内 `#if canImport(AMapLocationKit)` 守卫将激活真实路径。 ## 凭证 参 `docs/SDK-Integration-Guide.md §0` 凭证总表。APIKey 沿用 msext(`b0d4a8e3fcbbcc0dd96283b7df6a4494`,与 Bundle ID `com.skyapp.ylgamehall` 绑死)。 ## Info.plist 必需 - `NSLocationWhenInUseUsageDescription`:定位权限文案(已由工程接入时统一添加,见 SDK-Integration-Guide §2.2)