iOS:忽略文件...文件是为x86_64(不是要链接的体系结构)构建的(arm64)

时间:2019-07-31 18:52:08

标签: ios swift architecture frameworks objective-c++

我导入了一个用C ++编写的外部框架。该应用程序可以在Simulator中正常运行,并且可以正常访问该框架,但是当我尝试在真正的iPad上运行时,在编译过程中会收到以下警告和错误:

ld: warning: ignoring file /Users/user/Documents/workspace/ios-project/ImagingAPI.framework/ImagingAPI, file was built for x86_64 which is not the architecture being linked (arm64): /Users/user/Documents/workspace/ios-project/ImagingAPI.framework/ImagingAPI Undefined symbols for architecture arm64: "apply_filter(float*, long*, float*, long*, int, float**)", referenced from: -[ImagingCPPWrapper applyFilters:input_params:output_image:output_params:filter_id:args:] in ImagingCPPWrapper.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

这些是框架的构建参数,还显示了一些警告:

Build parameters

Build parameters

Warnings

0 个答案:

没有答案