此处 API iOS 集成:缺少必需的架构 x86_64
HERE API iOS Integration: missing required architecture x86_64
我正在尝试将 HERE API(通过手动框架导入 - 我们不使用 pods)集成到我们当前的项目中,但出现以下错误:
ld: warning: ignoring file ./NMAKit.framework/NMAKit, missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NMAApplicationContext", referenced from:
objc-class-ref in MapManager.o
ld: symbol(s) not found for architecture x86_64
阅读了用户指南和自述文件,但没有看到任何有助于解决此问题的信息。
难道只是框架不支持那个arch?还是我错过了设置等?
提前致谢。
HERE iOS SDK(HERE iOS SDK Premium Edition v3.11 和 HERE iOS SDK Starter Edition v3.11)都具有 x86_64 架构。
我假设你已经执行了,它用于应用发布。
您可以在终端中使用 lipo
命令检查可用架构:
$ lipo -info YOUR_PROJECT_LOCATION/NMAKit.framework/NMAKit
Architectures in the fat file: NMAKit are: x86_64 i386 armv7 arm64
如果您没有所有架构,请在此处下载 iOS SDK:
- 选项 A)来自 https://developer.here.com 使用您的 HERE 帐户;
- 选项 B) 使用 CocoaPods (HERE Starter SDK OR HERE Premium SDK)
注意:我建议您使用真实设备进行产品开发和验证。您可以使用模拟器(x86_64 架构)进行一般开发,但它与真实设备有很多差异(至少在iOS API 支持、硬件、显示差异方面)。有关差异的更多详细信息,请参见 Apple Simulator Overview documentation。
我正在尝试将 HERE API(通过手动框架导入 - 我们不使用 pods)集成到我们当前的项目中,但出现以下错误:
ld: warning: ignoring file ./NMAKit.framework/NMAKit, missing required architecture x86_64 in file
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NMAApplicationContext", referenced from:
objc-class-ref in MapManager.o
ld: symbol(s) not found for architecture x86_64
阅读了用户指南和自述文件,但没有看到任何有助于解决此问题的信息。
难道只是框架不支持那个arch?还是我错过了设置等?
提前致谢。
HERE iOS SDK(HERE iOS SDK Premium Edition v3.11 和 HERE iOS SDK Starter Edition v3.11)都具有 x86_64 架构。
我假设你已经执行了lipo
命令检查可用架构:
$ lipo -info YOUR_PROJECT_LOCATION/NMAKit.framework/NMAKit
Architectures in the fat file: NMAKit are: x86_64 i386 armv7 arm64
如果您没有所有架构,请在此处下载 iOS SDK:
- 选项 A)来自 https://developer.here.com 使用您的 HERE 帐户;
- 选项 B) 使用 CocoaPods (HERE Starter SDK OR HERE Premium SDK)
注意:我建议您使用真实设备进行产品开发和验证。您可以使用模拟器(x86_64 架构)进行一般开发,但它与真实设备有很多差异(至少在iOS API 支持、硬件、显示差异方面)。有关差异的更多详细信息,请参见 Apple Simulator Overview documentation。