Xcode 4.2无法构建任何东西

时间:2011-11-11 07:55:21

标签: xcode macos xcode4 osx-lion xcode4.2

我最近在我的macbookpro 10.7.2上安装了Xcode 4.2。我把我的驱动器划分为BootCamp。当我安装XCode 4.2时,我运行了XCode,我试着看看它是否可以简单地构建东西,所以我选择了一个命令行工具。向导完成生成文件后,我只是运行它,它已经给了我一个错误。我尝试了其他模板,它产生了同样的错误。什么是这个问题的解决方案?

无论如何,这是错误:

Clang LLVM 1.0 Error
Command /Developer/usr/bin/clang failed with exit code 11

ProcessPCH /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/PrecompiledHeaders/SecondApp-Prefix-grjbjgpsgeilsbghzjmhjjxmgsqx/SecondApp-Prefix.pch.pth SecondApp/SecondApp-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/revin122/Downloads/Ex_Files_ObjC_EssT/exercise_files/ch03/SecondApp
    setenv LANG en_US.US-ASCII
    /Developer/usr/bin/clang -x objective-c-header -arch x86_64 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wshorten-64-to-32 -DDEBUG -isysroot /Developer/SDKs/MacOSX10.7.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -Wno-sign-conversion "-DIBOutlet=__attribute__((iboutlet))" "-DIBOutletCollection(ClassName)=__attribute__((iboutletcollection(ClassName)))" "-DIBAction=void)__attribute__((ibaction)" -iquote /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-generated-files.hmap -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-own-target-headers.hmap -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-all-target-headers.hmap -iquote /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/SecondApp-project-headers.hmap -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Products/Debug/include -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/DerivedSources/x86_64 -I/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Intermediates/SecondApp.build/Debug/SecondApp.build/DerivedSources -F/Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/Products/Debug -c /Users/revin122/Downloads/Ex_Files_ObjC_EssT/exercise_files/ch03/SecondApp/SecondApp/SecondApp-Prefix.pch -o /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/PrecompiledHeaders/SecondApp-Prefix-grjbjgpsgeilsbghzjmhjjxmgsqx/SecondApp-Prefix.pch.pth -MMD -MT dependencies -MF /Users/revin122/Library/Developer/Xcode/DerivedData/SecondApp-dderlmctlgoalofwkqvuhanbimji/Build/PrecompiledHeaders/SecondApp-Prefix-grjbjgpsgeilsbghzjmhjjxmgsqx/SecondApp-Prefix.pch.d

Command /Developer/usr/bin/clang failed with exit code 11

1 个答案:

答案 0 :(得分:0)

要尝试缩小此处的问题,尝试的一件事是将编译器从“Apple LLVM Complier 3.0”更改为“LLVM GCC 4.2”,看看是否得到不同的结果。这可能会开始缩小正在发生的事情。

另一件值得尝试的事情就是重新安装Xcode 4.2。一些人 - 我自己包括 - 发现初始安装很糟糕但重新安装在顶部修复了问题。