title: xcode 6.1 build failed with error "Apple LLVM 6.0 error: compiler does not support 'fapple-kext'"
body: <p>Building USB driver kext for our USB device on xcode 6.1 with build settings Architecture= Universal(32/64bit Intel) and Base SDK=10.8, Build fail with error,</p>
  
  <pre><code>clang: error: the clang compiler does not support 'fapple-kext' for C++ on Darwin/i386
  Command /Applications/Xcode 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
  </code></pre>
  
  <p>The same project build successfully if I select "Build Active Architecture only = Yes" but in that case kextload failed with following errors on 10.8 OSX but it worked on 10.9 OSX</p>
  
  <pre><code>Dec 19 17:36:22 localhost com.apple.kextd[16]: Failed to load /System/Library/Extensions/gdmuwm.kext - (libkern/kext) link error.
  Dec 19 17:36:22 localhost kernel[0]: kxld[com.gct.driver.gdmuwm]: The super class vtable '__ZTV12IOUserClient' for vtable '__ZTV13GdmUserClient' is out of date. Make sure your kext has been built against the correct headers.
  Dec 19 17:36:22 localhost kernel[0]: kxld[com.gct.driver.gdmuwm]: The super class vtable '__ZTV19IOEthernetInterface' for vtable '__ZTV5gdmif' is out of date. Make sure your kext has been built against the correct headers.
  Dec 19 17:36:22 localhost kernel[0]: kxld[com.gct.driver.gdmuwm]: The super class vtable '__ZTV20IOEthernetController' for vtable '__ZTV6gdmuwm' is out of date. Make sure your kext has been built against the correct headers.
  Dec 19 17:36:22 localhost kernel[0]: Can't load kext com.gct.driver.gdmuwm - link failed.
  Dec 19 17:36:22 localhost kernel[0]: Failed to load executable for kext com.gct.driver.gdmuwm.
  Dec 19 17:36:22 localhost kernel[0]: Kext com.gct.driver.gdmuwm failed to load (0xdc008016).
  Dec 19 17:36:22 localhost kernel[0]: Failed to load kext com.gct.driver.gdmuwm (error 0xdc008016).
  </code></pre>
  
  <p>Please help me how to resolve this link error for driver.</p>