Mach O Link Error- linker命令失败,退出代码为1(使用-v查看调用) [英] Mach O Link Error- linker command failed with exit code 1 (use -v to see invocation)
问题描述
当我尝试在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 Link Error- linker命令失败,退出代码为1(使用-v查看调用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!