I'm having the following error when archiving (running on device works great).
clang: error: '-I-' not supported, please use -iquote instead
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I'm using Apple LLVM compiler 3.1, and the cocos2d library (which seems to compile well). I also could archive until I added the cocos2d library.
When looking at the log navigator, I see that everything compiled well until it comes down to my project's source, each source file is throwing a clang error.
I've tried the following solution without success: Xcode 4 - clang error After changing the compiler to LLVM-GCC and setting my Header Search Paths, I still have the -I- specified twice errors. Also, the code stops running on the device since I entirely rely on ARC.
I would like to know what are the possible solutions to my problem. If I should try to build cocos2d independently, or if there are some compilation settings i can tweak.
Thank you for your help, and sorry in advance if I forgot some details or made a mistake, I'm relatively new to IOS dev
ps: using Xcode 4.3.2