Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Compile Error: Lipo: can't open input file

Tags:

xcode

ios

/fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/zicjin/Library/Developer/Xcode/DerivedData/Baozou-iOS-gsgjiwiqjwffeheenpeffrqpytqx/Build/Intermediates/Baozou-iOS.build/Debug-iphoneos/Baozou-iOS.build/Objects-normal/armv7/Baozou-iOS (No such file or directory)

Use virtual machines to compiler does not complain, but switched to the real machine (iphone5s) runtime compilation error will be so enter image description here

the sourcecode on github

like image 218
zicjin Avatar asked Jul 26 '14 03:07

zicjin


4 Answers

Set your Build Active Architecture Only to YES, then it will work

like image 53
Geet Avatar answered Sep 30 '22 12:09

Geet


This happened to me. I'm using a static library in my project and the issue was that I put the aggregate with the universal script as a target instead of using the library itself.

This happens when the universal script tries to generate the universal library but the library itself is not compiled, this script needs the library to be created before running.

like image 21
YYamil Avatar answered Oct 02 '22 12:10

YYamil


In Xcode 7.2 I had to set Enable Bitcode to No in Build Settings > Build Options.

like image 29
Moritz Avatar answered Sep 30 '22 12:09

Moritz


I ran into this problem while migrating my project from Xcode 5.0.2 to Xcode 6.1. These are the steps that I followed to get it working.

  1. There was a warning generated - "Used recommended settings ... blah blah" - I allowed Xcode to change my project to whatever recommended settings there was.This did not stop the error though.

  2. In TARGET -> BUILD SETTINGS -> BUILD ACTIVE ARCHITECTURES ONLY . I turned the flag to YES.

  3. set TARGET -> BUILD SETTINGS -> Linking -> Other Linker Flags : $(OTHER_LDFLAGS)

After step 3 -I cleaned and then build my project and Whoa the error just vanished!!!!!

like image 38
GhostCode Avatar answered Oct 01 '22 12:10

GhostCode