Mach O 链接错误-链接器命令失败,退出代码为 1(使用 -v 查看调用) [英] Mach O Link Error- linker command failed with exit code 1 (use -v to see invocation)

查看:38
本文介绍了Mach O 链接错误-链接器命令失败,退出代码为 1(使用 -v 查看调用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 Xcode(4.5 版)中为我的应用程序构建存档时,我收到一条错误消息:

When I try building for archiving for my app in Xcode (version 4.5) I get an error that says:

ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/[myrealname]/Downloads/[myappname]/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s

clang: 错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)然后在它下面说:

clang: error: linker command failed with exit code 1 (use -v to see invocation) It then says under it:

(null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/shakerite/Downloads/shakeritetestnotrealone_v15_iOS/BT_Objects/TwitterOAuth/SAOAuthTwitterEngine/libOAuth.a for architecture armv7s

有人知道如何解决这个问题吗?

Does anyone know how to solve this?

推荐答案

前几天,当我在 iPad 上运行我的应用程序时,在模拟器上多次成功尝试后,我收到了一条非常相似的消息.我发现在构建设置下,我必须将仅构建活动架构"设为是.然后我的应用程序将在我的设备上编译.希望这会有所帮助.

I received a very similar message just the other day when I tried running my app on my iPad after several successful attempts on the simulator. I found out that under the build settings I had to make "build active architecture only" to yes. Then my app would compile on my device. Hope this helps.

这篇关于Mach O 链接错误-链接器命令失败,退出代码为 1(使用 -v 查看调用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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