I\'m trying to make an archive (ipa) for my iOS (iPhone) app but I\'m receiving a strange error:
Apple LLVM Compiler 3.1 error clang: error: no such file or
I had this same issue and none of the above answers were working for me.
I discovered that if I opened a project from the command line, i.e. open test.xcodeproj/, even a brand new project from a template would fail to compile with the error above.
However, if I opened Xcode first and chose the project from the splash screen, everything worked just fine.
Leaving this here in case anyone else is stuck banging their head against the wall.