文件是通用的(三个切片),但它不包含 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?

查看:27
本文介绍了文件是通用的(三个切片),但它不包含 iOS 上静态库的(n)ARMv7-s 切片错误,无论如何要绕过?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我升级了 Xcode 版本,当使用外部静态库时,我收到以下消息:

I upgraded Xcode version and when using external static libraries, I get this message:

ld:文件是通用的(3 个切片)但不包含 a(n) armv7s 切片:/file/location for architecture armv7sclang:错误:链接器命令失败,退出代码为 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 在您的情况下,使用菜单 Project -> Build Settings -> 从有效架构"中删除架构.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆