Xcode 5:'xcodebuild'甚至在'Empty Application'模板上都失败了

时间:2013-10-09 19:15:45

标签: gcc xcode5 xcodebuild

Issues between xcodebuild and Jenkins提示我在香草xcodebuild模板上尝试Empty Application 仍然失败:

>> xcodebuild -target FizzBuzz -sdk iphonesimulator7.0 -arch i386
The following build commands failed:
ProcessPCH /var/folders/64/<someHash>/C/com.apple.DeveloperTools/5.0-5A1413/\
Xcode/SharedPrecompiledHeaders/FizzBuzz-Prefix-<someHash>/FizzBuzz-Prefix.pch.pch
FizzBuzz/FizzBuzz-Prefix.pch 
normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

>> xcodebuild -version
Xcode 5.0
Build version 5A1413

xcodebuild的正确咒语是什么?

1 个答案:

答案 0 :(得分:0)

这3个对我来说是关键问题:

  1. xcodebuild仍然依赖于gcc-4.7(已安装Command Line Tools)。检查$CCunset $CC,让clang完成工作。
  2. -scheme选项与xcodebuild ...
  3. 一起使用
  4. ...和ONLY_ACTIVE_ARCH=NO