从终端构建iOS工作区时出错

时间:2012-08-22 14:02:11

标签: ios xcode xcodebuild

我在终端上构建iOS应用时遇到问题。我正在关注xcodebuild -h帮助,但我无法使其正常工作......我一直在谷歌上搜索我得到的错误,但无法找到答案对此...

这就是我正在做的事情:

xcodebuild -workspace AppName.xcworkspace -scheme' Integration Tests' - 配置调试

我得到的错误是:

The following build commands failed:
ProcessPCH /Users/UserName/Library/Developer/Xcode/DerivedData/AppName/Build/PrecompiledHeaders/AppName-Prefix/AppName-Prefix.pch.pth AppName/AppName-Prefix.pch normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
ProcessPCH /Users/UserName/Library/Developer/Xcode/DerivedData/AppName/Build/PrecompiledHeaders/AppName-Prefix/AppName-Prefix.pch.pth AppName/AppName-Prefix.pch normal armv6 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

我找不到什么失败,使用xCode我可以编译并运行这个应用程序没有问题......有什么想法发生了吗?

谢谢!

1 个答案:

答案 0 :(得分:1)

您是否尝试过使用xcode-select选择xcode?

xcode-select -switch /Applications/Xcode.app/Contents/Developer

在大多数情况下......

您也可以尝试通过

续订xcodebuild
$sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
$cd /usr/bin
$sudo rm xcodebuild
$ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild xcodebuild