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 切片错误,无论如何要绕过?


- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- android 4中的android RadioButton问题 2022-01-01