I am ruing Jenkins on an older Mac Pro (2012) and am having trouble ruing my xctool test suite.
My setup mirrors this blog post (which is recommended by the xctool project).
The specific error I'm seeing tends to happen intermittently as of the latest Xcode 7 and iOS 9.3 update, and I am ruing xctool 0.2.9
[Info] Collecting info for testables... (1938 ms)
run-test Tests.xctest (iphonesimulator9.3, iPad Air 2, application-test)
[Info] Prepared 'iPad Air 2' simulator to run tests. (114 ms)
[Waing] Failed to install the test host app 'EXAMPLE'. (30004 ms)
[Info] Preparing test environment failed; will retry 2 more times (0 ms)
[Info] Verified iOS Simulators... (0 ms)
[Info] Shut down iOS Simulator... (1174 ms)
[Info] Stopped any existing iOS simulator jobs to get a fresh simulator. (118 ms)
[Info] Reset iOS simulator content and settings at path "PATH_GOES_HERE" (640 ms)
[Info] Prepared 'iPad Air 2' simulator to run tests. (324 ms)
[Info] Prepared 'iPad Air 2' simulator to run tests. (6 ms)
[Waing] Failed to install the test host app 'EXAMPLE'. (30006 ms)
[Info] Preparing test environment failed; will retry 1 more time (0 ms)
[Info] Verified iOS Simulators... (0 ms)
[Info] Shut down iOS Simulator... (11017 ms)
[Info] Stopped any existing iOS simulator jobs to get a fresh simulator. (116 ms)
[Info] Reset iOS simulator content and settings at path "PATH_GOES_HERE" (519 ms)
[Info] Prepared 'iPad Air 2' simulator to run tests. (328 ms)
[Info] Prepared 'iPad Air 2' simulator to run tests. (5 ms)
[Waing] Failed to install the test host app 'EXAMPLE'. (30003 ms)
[Waing] Preparing test environment failed. (0 ms)
-[TEST_BUNDLE FAILED_TO_START]
I have tried booting the simulator when my Jenkins job starts, clearing out the device, shutting all simulators down, cleaning out any zombie simulator processes, etc...and I have not found anything that fixes this issue, nor have I been able to find a way to increase the timeout for this specific step.
