【发布时间】:2022-01-07 08:43:55
【问题描述】:
在为 ios-arm64-simulator 构建 HERE SDK for iOS(Premium 3.19)时遇到问题。 Xcode 13 在 M1 pro 处理器上产生的错误是:
ld: building for iOS Simulator, but linking in dylib built for iOS, file 'Pods/HEREMaps/framework/NMAKit.xcframework/ios-arm64/NMAKit.framework/NMAKit'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
经过一些研究和测试,看起来 HERE SDK 的 XCFramework 文件夹以及 Cocoapod 配置仅包含 ios-arm64 和 ios-x86_64-simulator。看起来 podspec 正试图通过覆盖目标应用程序的 iOS 模拟器排除架构(添加排除架构“arm64”)来解决此问题。在目标应用程序中仅使用包含 x86_64 的 Cocoapod 源库的情况下,这可能工作正常。但是,在使用其他来源的库时,如果使用 x86_64 模拟器没有回滚选项(例如 Swift 包管理器),就会出现问题。
有没有办法使用 lipo 从现有的两个框架构建中生成ios-arm64-simulator?或者这是否需要将 ios-arm64-simulator 构建为 HERE SDK 源的另一个配置?
【问题讨论】:
-
尝试迁移到导航版,它支持M1开箱即用:developer.here.com/documentation/android-sdk-navigate/dev_guide/…
标签: ios swift xcode here-api heremaps-ios-sdk