为 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 包管理器)。
有没有办法使用 lipoios-arm64-simulator
从两个现有的框架构建中生成?或者这是ios-arm64-simulator
需要从 HERE SDK 源代码构建为另一种配置的地方?