Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lipo Error!! can't open input file

My application was working perfectly fine, then I started integrating SDK for push notification and stop the integration in between. I even deleted the SDK from my project and trying to archive or run the app, it gives me the error:

lipo Error!! can't open input file.

Any help would be appreciated a lot, I have given enough time to solve this but failed.

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo: can't open input file: /Users/XYZ/Library/Developer/Xcode/DerivedData/MyAPP-hjbmqpnmsoruqxbwlayqkjsojccv/Build/Intermediates/MyAPP.build/Debug-iphoneos/MyAPP.build/Objects-normal/armv7s/MyAPP (No such file or directory)

like image 889
Zac24 Avatar asked Jun 27 '13 16:06

Zac24


3 Answers

I got it to work, I just made a simple change in my Project target-> Build setting-> Build Active Architecture only and set this Build Active Architecture only to YES. And it's working fine now..

update After 6 months:

Again i face this issue after updating to Xcode5. This time i have to update Project target-> Build setting->Valid Architecture to armv7. I removed armv7s and arm64.

like image 59
Zac24 Avatar answered Nov 11 '22 07:11

Zac24


By Setting "Enable Bitcode" to "No" works for me.

Now i able to Run on Device and submit to App store as well.

enter image description here

like image 33
Avijit Nagare Avatar answered Nov 11 '22 08:11

Avijit Nagare


Note that I got this when switching from Carthage to CocoaPods. Solution was to delete the "Remove Unneeded Architectures" in the Build Phases section.

like image 10
Austin Avatar answered Nov 11 '22 07:11

Austin