`xcodebuild test` times out waiting for simulator to boot if build takes >120 seconds

Originator:e28eta
Number:rdar://22413115 Date Originated:8/24/2015
Status:Open Resolved:
Product:Developer Tools Product Version:6.4 6E35b
Classification:UI/Usability Reproducible:Always
 
Summary:
When `xcodebuild test` has to build (parts of?) the project, that build time counts against the 120 seconds allocated for the simulator to boot.

Our CI build suddenly started failing because our project got larger, and we started hitting this time limit.

Here is a sample application demonstrating the problem: https://github.com/e28eta/simulator-launch-timeout-includes-build-time

Steps to Reproduce:
1. Have an iOS application whose build takes > 120 seconds
2. Clean all previously-built build products
3. Use xcodebuild to run the 'clean' action (and only 'clean')

Expected Results:
The application should completely build, and then run the test bundle(s)

Actual Results:
The application builds, but it skips running the test bundles and reports that the tests failed.

During the build process, xcodebuild logs "xcodebuild[54591:624937]  iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1."

Version:
Xcode 6.4, 6E35b. OS X 10.10.5, 14F27

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!