xctool不使用Jenkins安装应用程序

xctool不使用Jenkins安装应用程序,jenkins,xcodebuild,xctool,Jenkins,Xcodebuild,Xctool,Xctool在我Jenkins的作业v1.598中不起作用,但它使用终端工作 这是命令行: xctool -destination 'platform=iOS Simulator,OS=8.1,name=iPhone 6' -reporter pretty -reporter json-compilation-database:compile_commands.json -reporter junit:Build/junit.xml clean test OBJROOT=./Build 这就是

Xctool在我Jenkins的作业v1.598中不起作用,但它使用终端工作

这是命令行:

xctool -destination 'platform=iOS Simulator,OS=8.1,name=iPhone 6' -reporter pretty -reporter json-compilation-database:compile_commands.json -reporter junit:Build/junit.xml clean test OBJROOT=./Build
这就是错误:

[Info] Collecting info for testables... (1249 ms)
  run-test TestingProject.xctest (8.1, iPhone 6, application-test)
    [Warning] Tried to install the test host app 'com.domain.app' but failed. (54 ms)
    [Info] Preparing test environment failed; will retry 2 more times (0 ms)
    [Info] Verified iOS Simulators... (0 ms)
    [Info] Shut down iOS Simulator... (0 ms)
    [Info] Stopped any existing iOS simulator jobs to get a fresh simulator. (7 ms)
    [Info] Reset iOS simulator content and settings at path "/Users/jenkins/Library/Developer/CoreSimulator/Devices/144B4DFF-8E5D-4685-AF80-4970F634E7A8/data" (127 ms)
    [Warning] Tried to install the test host app 'com.domain.app' but failed. (13 ms)

我使用的是xctool 0.2.2,奇怪的是,我在本地机器上运行的是同一个Jenkins作业,工作正常。

你在Jenkins上安装了所有证书吗?@Opal同一个命令行在模拟器的终端安装和测试中工作,我认为这个问题与xctool有关,因为它无法启动iOS Simulator。我用这个答案解决了这个问题。。。我的詹金斯是通过使用启动守护进程而不是启动代理来执行的。LaunchAgent能够运行GUI应用程序,在本例中为iOS模拟器