File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?(文件是通用的(三个切片),但它不包含 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 切片错误,无论如何要绕过?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:文件是通用的(三个切片),但它不包含 iOS 上静态库的(n)ARMv7-s 切片错误,无论如何要绕过?
基础教程推荐
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01