问题
Try this on the new Xcode 4.4: create a new project, a Cocoa application, and set the Development Target to OSX 10.5.
If you run it, you'll get this error:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Can someone explain this? I want to support Leopard too in my projects but I get this error if I try to execute them.
回答1:
Make sure your project does not use ARC. ARC is not supported on Leopard.
(It is supported on Snow Leopard, sans weak references)
The actual error, btw, is probably before the line you copy/pasted in your question.
I hope that helps.
来源:https://stackoverflow.com/questions/11728634/xcode-4-4-osx-10-5-as-development-target-clang-llvm-1-0-error