Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I am developing an app for iPhone and iPad.

Suddenly I can't run my project because of this error:

clang: error: no such file or directory: '/Users/AkdemiaMacBookAir/Developer/iOS/ios-akdemia/ios-akdemia/ios-akdemia-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I was looking for in Stack Overflow and I actually checked out that my Prefix Header is correct.

My xcode build settings

And here is the file:

folder and file in Finder

I don't understand why xcode try to compile the pch from this path '/Users/AkdemiaMacBookAir/Developer/iOS/ios-akdemia/ios-akdemia/ios-akdemia-Prefix.pch' if I never told it that.

like image 571
origds Avatar asked May 05 '26 01:05

origds


1 Answers

This guy fixed it:

http://www.buzztouch.com/forum/thread.php?tid=F42D8239A330C321132944A&currentPage=3

This was his answer:

Click on the name of your project on the list of files/folders on the left in Xcode (at the very top of the list). Look at the "Targets" section on the left-hand side of the window to the right. Likely, there's two listed with the second being a "test" item. Right-click on that item and select "delete". Then try to run the project again. See screenshot below for a visual cue.

enter image description here

like image 158
jalagrange Avatar answered May 08 '26 13:05

jalagrange



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!