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
OK, what you need to do is go to build settings and scroll down to :
Apple LLVM Compiler 3.1 - Language
Search in the table for 'other c flags
'. What you see is armv6
? Right? :)
Change armv6
to: -DNS_BLOCK_ASSERTIONS=1
Good luck, Nathan
[Your project]
under Targets.Build Settings
.That should do it :)
(I also had some files missing, look at your build log and make sure there are no other errors above the one mentioned for this question)
Good luck!
P.S. - May Xcode die a slow and painful death!
I got similar error. Following steps fixed my problem, not sure if this is going to work for you, but worth a shot:
Issue: Compiler unable to locate [myapp]-Prefix.pch file. This is because Location of Prefix Header file [myapp]-Prefix.pch in Project Target is incorrect.
The location is defined in Project Target/Build setting. You will need to go to: Project Target -> Build Settings Tab -> Scroll down and Look for "Apple LLVM Compiler 3.1 - Language" Underneath this node -> You will find the key/value setting for Prefix Header file.
Normally Prefix header file is located under "Supporting File" Folder in your project
Please note, I am using Xcode 4.3.2 so if you are using a version other than this you might have to look around a bit for this setting.
Happy Coding!
For me I was referencing a PCH that didn't exist, just search for 'pch' in your build settings and make sure any .pch files being referenced actually exist at that location, if not, update