无法使用 Here Maps 和 Swift 2.2、xcode 7.3 导出存档

Unable to export archive with Here Maps and Swift 2.2, xcode 7.3

我们在 Xcode 7.3 中使用 HERE iOS SDK Premium Edition 和 Swift 但是当我们尝试使用以下命令导出存档时:

xcodebuild -exportArchive -exportOptionsPlist exportOptions.plist -archivePath build/App.xcarchive -exportPath build

exportArchive 失败,我们 运行 进入错误:

ld: bitcode bundle could not be generated because '<path to workspace>/HEREMaps/NMAKit.framework/NMAKit(NMAApplicationContext.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here 地图支持 Swift 和 Xcode 7.3 吗?是否需要设置项目设置才能使其正常工作?

我们能够 运行 模拟器中的应用程序没有问题。

Bitcode 是 Xcode 7.

引入的新功能

Bitcode is an intermediate representation of a compiled program. Apps you upload to iTunes Connect that contain bitcode will be compiled and linked on the store. Including bitcode will allow Apple to re-optimize your app binary in the future without the need to submit a new version of your app to the store.

引用AppThinning Documentation

从错误看来,HERE SDK 未启用位码,但在您的项目设置中已启用位码。要解决此问题,有两种可能的选择:

  1. 使用 Here SDK 的启用位码版本(如果供应商提供启用位码的版本)

  2. 在构建设置中禁用位码