title: Xcode 4 - clang error
body: <p>I'm migrating from Xcode 3.5 to Xcode 4 and
  while I'm trying to Archiving my app for AdHoc distribution.<br>
  I received this error</p>
  
  <p><strong>Precompile MyApp_Prefix.pch</strong></p>
  
  <pre><code>ProcessPCH /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.pth MyApp_Prefix.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
  cd /Users/return/Projects/iphone-MyApp
  setenv LANG en_US.US-ASCII
  setenv PATH "/Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin:/Xcode4.2/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
  /Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -DFAVOURITES_ENABLED=0 -isysroot /Xcode4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -gdwarf-2 -fvisibility=hidden -Wno-sign-conversion -mthumb "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -miphoneos-version-min=3.0 -iquote "/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-generated-files.hmap" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-own-target-headers.hmap" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-all-target-headers.hmap" -iquote "/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/MyApp-project-headers.hmap" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/BuildProductsPath/Distribution-iphoneos/include" "-I”/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp" -I- "-IDistribution/BuildProductsPath/Distribution-iphoneos/../three20″" "-I“/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp" -I- "-IDistribution/BuildProductsPath/Distribution-iphoneos/../../three20″" -Ithree20/Build/Products/three20 -I/Xcode4.2/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/libxml2 "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/DerivedSources/armv7" "-I/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/IntermediateBuildFilesPath/MyApp.build/Distribution-iphoneos/MyApp.build/DerivedSources" "-F/Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/ArchiveIntermediates/MyApp - Distribution/BuildProductsPath/Distribution-iphoneos" -c /Users/return/Projects/iphone-MyApp/MyApp_Prefix.pch -o /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.pth -MMD -MT dependencies -MF /Users/return/Library/Developer/Xcode/DerivedData/MyApp-cwtxjgdpsvtoyxcfpytllmzaxceb/Build/PrecompiledHeaders/MyApp_Prefix-crxrbmeralwexyefvuwvzexquuin/MyApp_Prefix.pch.d
  
  
  **clang: error: '-I-' not supported, please use -iquote instead**
  **Command /Xcode4.2/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1**
  </code></pre>
  
  <p>Do you know what I should do to fix this?</p>
  
  <hr>
  
  <h2><strong>UPDATE (report result after followed MacMade's suggestions)</strong></h2>
  
  <p>So in the <strong>Target Build Settings</strong>:<br>
  I have nothing in <strong>Other C flags</strong>.<br>
  I have nothing in <strong>User Header Search Paths</strong>  </p>
  
  <p>In <strong>Header Search Paths</strong>, I have:  </p>
  
  <ul>
  <li><code>”$(BUILT_PRODUCTS_DIR)/../three20″</code></li>
  <li><code>“$(BUILT_PRODUCTS_DIR)/../../three20″</code>  </li>
  <li><code>./three20/Build/Products/three20</code>  </li>
  <li><code>/usr/include/libxml2</code>  </li>
  </ul>
  
  <p>but I'm not sure what to change here.</p>
  
  <p>In <strong>Compiler for C/C++/Objective-C</strong> setting,
  I switched from <strong><code>Apple LLVM compiler</code></strong> to <strong><code>LLVM GCC</code></strong> and get this message:</p>
  
  <pre><code>cc1obj: note: obsolete option -I- used, please use -iquote instead  
  cc1obj: error: -I- specified twice  
  cc1obj: note: obsolete option -I- used, please use -iquote instead 
  </code></pre>
  
  <hr>
  
  <h2><strong>UPDATE (report result after followed MacMade's updated suggestions)</strong></h2>
  
  <p>So I move: </p>
  
  <ul>
  <li><code>”$(BUILT_PRODUCTS_DIR)/../three20″</code>   </li>
  <li><code>“$(BUILT_PRODUCTS_DIR)/../../three20″</code>   </li>
  </ul>
  
  <p>to  <strong>User Header Search Paths</strong></p>
  
  <p>and it works!!!<br>
  (NOTE: I don't move <strong>./three20/Build/Products/three20</strong> because I see<br>
  <code>can't find &lt;Three20/Three20.h&gt;</code><br>
  errors while building the project if I do.)</p>