xcode macruby应用程序clang错误

时间:2013-12-01 13:33:32

标签: xcode cocoa macruby

我在Mac OS X 10.9下使用XCode 5.0。每当我创建一个macruby应用程序时,MacRuby.framework都显示为红色。重新添加到框架的路径后,它不是红色,但每当我尝试构建我的测试应用程序(没有改变)时,我就成了这个错误:

  processPCH /Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/PrecompiledHeaders/testr-Prefix-buaqdwrexxuknicqaiogcqxxfoyk/testr-Prefix.pch.pch testr/testr-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/Jochen/Documents/MacDev/testr
    setenv LANG en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang   
   -x objective-c-header -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack     -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-gc-only -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -fasm-blocks -fno-objc-direct-dispatch -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.9 -g -Wno-sign-conversion -iquote /Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/testr.build/Debug/testr.build/testr-generated-files.hmap -I/Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/testr.build/Debug/testr.build/testr-own-target-headers.hmap -I/Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/testr.build/Debug/testr.build/testr-all-target-headers.hmap -iquote /Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/testr.build/Debug/testr.build/testr-project-headers.hmap -I/Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Products/Debug/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/testr.build/Debug/testr.build/DerivedSources/x86_64 -I/Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/testr.build/Debug/testr.build/DerivedSources -F/Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Products/Debug -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -F/Library/Frameworks --serialize-diagnostics /Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/PrecompiledHeaders/testr-Prefix-buaqdwrexxuknicqaiogcqxxfoyk/testr-Prefix.pch.dia -MMD -MT dependencies -MF /Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/PrecompiledHeaders/testr-Prefix-buaqdwrexxuknicqaiogcqxxfoyk/testr-Prefix.pch.d -c /Users/Jochen/Documents/MacDev/testr/testr/testr-Prefix.pch -o /Users/Jochen/Library/Developer/Xcode/DerivedData/testr-etdvhjiaivrrrcexrmukckjnqlfk/Build/Intermediates/PrecompiledHeaders/testr-Prefix-buaqdwrexxuknicqaiogcqxxfoyk/testr-Prefix.pch.pch

clang: error: cannot specify both '-fobjc-arc' and '-fobjc-gc-only'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

标准配置有什么问题?有人有想法吗?

0 个答案:

没有答案