2

我在终端中运行命令

sudo /usr/bin/xcodebuild -project awesome.xcodeproj -scheme "AwesomeTests" 
-configuration Production test -derivedDataPath ~/Documents/buildData
-sdk "OS X 10.9"

最后几行输出看起来像

error: failed to launch '/Applications/Xcode.app/Contents/Developer/usr/bin/xctest'
-- error: Host::LaunchProcess (launch_info) => pid=0,
path='/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver'
err = Problems with launching via XPC. XPC error : Connection interrupted (0x00000005)
** TEST SUCCEEDED **

在输出这些行之前,系统会提示我:“xcodebuild is trying to take control of a root process. Type your password to allow this”

我正在使用 Xcode 5.0.2。

4

1 回答 1

1

正如@trojanfoe 指出的那样,这sudo是错误的原因。

似乎~/Documents/buildData文件夹是使用 root 权限创建的,无法从xtest.

于 2014-01-13T22:12:05.697 回答