Teddy13
Teddy13

Reputation: 3854

Command /usr/bin/lipo failed with exit code 1 error

I have finally finished my app and I was getting ready to upload when this sudden error hit me and I have no idea what to do. I have checked other posts saying to change the code signing identity and I have done this but no luck. I tried every single option in the identity and no change. If anyone knows what is going on I would really appreciate it since I would simply just like to submit my app.

Here is what else it says in the erorr log:

/usr/bin/lipo: /Users/teddy/Library/Developer/Xcode/DerivedData/grocery_stores-dcyubhefhrcjhtcxbhldfpukdgdz/Build/Intermediates/grocery stores.build/Release-iphoneos/grocerystores.build/Objects-normal/armv7/grocery stores and /Users/teddy/Library/Developer/Xcode/DerivedData/grocery_stores-dcyubhefhrcjhtcxbhldfpukdgdz/Build/Intermediates/grocery stores.build/Release-iphoneos/grocery stores.build/Objects-normal/armv7/grocery stores have the same architectures (armv7) and can't be in the same fat output file

Command /usr/bin/lipo failed with exit code 1

Upvotes: 12

Views: 14172

Answers (5)

gorgi93
gorgi93

Reputation: 2535

In my case it was building a project on simulator in a release scheme, changed it to debug and it worked.

Upvotes: 0

Nikolay Shubenkov
Nikolay Shubenkov

Reputation: 3223

In my case I used pods and oped projectFile instead of project workspace

Upvotes: 0

Muhammad Saad Ansari
Muhammad Saad Ansari

Reputation: 1758

Try changing your build target to a simulator build, clean and re-run.

Upvotes: 1

haifacarina
haifacarina

Reputation: 1210

I solved this issue by changing the value of the Valid Architecture found in Project > Build Settings > Architectures from the default "armv6 armv7" to "armv7". Hope this helps.

Upvotes: 19

rooftop
rooftop

Reputation: 3027

It's hard to see what exactly is happening without the command you are running. It looks to me like you are specifying the same input file twice, namely the arm7 version and lipo is telling you you can't add 2 arm7 versions of grocery stores to the universal file. Can you please enter the entire lipo command you are running? From the lipo man page: -create Take the input files (or file) and create one universal output file from them. Do you possibly have the same file listed twice here?

Upvotes: 4

Related Questions