Mach O Link Error- linker command failed with exit

2020-04-05 07:15发布

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: 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?

3条回答
forever°为你锁心
2楼-- · 2020-04-05 07:56

Yeah, I had this same exact problem. Click on your project in xcode. Then, click on the target. Go to build settings and look for valid architectures. Delete armv7s from the list of valid architectures and just leave armv7.

Let me know if you have any questions!

查看更多
迷人小祖宗
3楼-- · 2020-04-05 07:58

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.

查看更多
神经病院院长
4楼-- · 2020-04-05 08:02

here I provide you one temporary solution that can solve this error hope its help you,

go to Project->Build Settings->Build Active Architecture Only->yes

thats it.

查看更多
登录 后发表回答