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. 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!