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 got similar error, it seems there have many solutions to fix it, maybe.
Project Setting -> Building Setting -> Apple LLVM compile 3.1 - Launguage -> Objective-C Automatic Reference Counting. The default value is YES
, modify it to NO
.
My Xcode version is 4.3.2.
Hope this could help you and all the reader.
I had this issue with an unchanged project which had built fine before. The issue turned out to be the RAM Disk that I was using for XCode intermediate files being full!
XCode was reporting this and other issues which were solved by deleting older intermediate files.
I got the same error for LLVM Compiler 4.1 and it says that it could not found the file(s). I clean the project and open the Build Phases from Targets/Target section and remove all irrelevent files then rebuild the project and it worked.
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.
Also in build configuration you can change "Compiler for C/C++/Objective-C" to Default Compiler (Apple LLVM compiler 3.1)
I had this problem
You are using this compiler flags in your build Phases --> Compile Sources
File.m -fno-objc-arc armv6
Replace it to:
File.m -fno-objc-arc