2013-10-09 41 views
1

Issues between xcodebuild and Jenkins促使我嘗試xcodebuild在香草Empty Application模板它仍然失敗:Xcode中5:「xcodebuild聯編」失敗,即使是在「空白應用程序」模板

>> 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正確的咒語?

+0

我不知道爲什麼?但是,只是安裝命令行工具? – Bimawa

回答

0

這3人的關鍵問題對我來說:

  1. xcodebuild仍然依靠gcc-4.7Command Line Tools或不安裝)。請檢查$CCunset $CCclang完成其工作。
  2. 使用-scheme選項與xcodebuild ...
  3. ...和ONLY_ACTIVE_ARCH=NO
相關問題