Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mach O Link Error- linker command failed with exit code 1 (use -v to see invocation)

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?

like image 957
shak77 Avatar asked Sep 25 '12 21:09

shak77


2 Answers

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.

like image 169
Douglas Avatar answered Sep 19 '22 23:09

Douglas


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!

like image 27
Tommy Devoy Avatar answered Sep 19 '22 23:09

Tommy Devoy