文件是通用的(三个切片),但它不包含iOS上的静态库的(n)ARMv7-s切片错误,无论如何要绕过? [英] File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?
问题描述
我升级了 Xcode 版本,在使用外部静态库时,我收到此消息:
I upgraded Xcode version and when using external static libraries, I get this message:
ld:文件是通用的(3个切片),但不包含(n)armv7s切片:/ file / location for architecture armv7s
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)
有没有办法绕过这个如果库的开发人员尚未更新库,请添加对库的支持吗?
Is there any way to bypass this and add support to the library if the developer of the library hasn't updated their library yet?
推荐答案
如果要删除支持任何体系结构,例如,在您的情况下 ARMv7-s ,使用菜单项目 - > 构建设置 - >从有效架构中删除架构。
If you want to remove the support for any architecture, for example, ARMv7-s in your case, use menu Project -> Build Settings -> remove the architecture from "valid architectures".
您可以将其用作临时解决方案,直到库已更新。您必须从主项目中删除体系结构,而不是从库中删除。
You can use this as a temporary solution until the library has been updated. You have to remove the architecture from your main project, not from the library.
或者,您可以将调试配置的仅构建活动体系结构的标志设置为是。将发布配置的仅构建活动体系结构保留为否,这样您就可以在发布之前获得提醒,您应该升级您正在使用的任何第三方库。
Alternatively, you can set the flag for your debug configuration's "Build Active Architecture Only" to Yes. Leave the release configuration's "Build Active Architecture Only" to No, just so you'll get a reminder before releasing that you ought to upgrade any third-party libraries you're using.
这篇关于文件是通用的(三个切片),但它不包含iOS上的静态库的(n)ARMv7-s切片错误,无论如何要绕过?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!