1

之间的问题xcodebuildJenkins促使我尝试使用仍然失败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

4

1 回答 1

0

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

  1. xcodebuild仍然依赖gcc-4.7Command Line Tools安装与否)。检查$CCunset $CC让其clang完成工作。
  2. 使用-scheme带有xcodebuild...的选项
  3. ...和ONLY_ACTIVE_ARCH=NO
于 2013-10-14T13:30:43.720 回答