Xcode 7.1: Xcode Bots Simulator Timeout

Number:rdar://23386199 Date Originated:03-Nov-2015 05:21 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 7.1 (7B91b)
Classification:Serious Bug Reproducible:Always
Creating a bot and running an integration results in error because the simulator takes too long to boot. This happens to all my projects, from new apps under development that target iOS 9 to our library projects that support iOS 7 and up.
All projects compile without warnings, run test successfully on various dev machines but the tests never work on the CI machine.

CI Machine:
Mac Mini 2012
OS X 10.11 (15A284)
Xcode 7.1 (7B91b)
Server App 5.0.15 (15S4033)

Steps to Reproduce:
1. Create a sample project from Xcode and put under versioning using git and publish it on github
2. Create a bot from either the dev machine or the CI machine itself using “create bot”
3. Configure the bot with the defaults
4. Let it integrate after successful creation (the bug persists if you integrate later). 

Expected Results:
The bot checks out the code from the git repository, build the app, runs unit tests and ui tests in the simulator and does not time out.

Actual Results:
The bot will check out and compile the project successfully, then try to run the unit tests and UI tests. Nothing will happen for 2-5min (it depends on how many simulators you have installed), in case you run it on all simulators, it may take up to 20min. Then, it will time out and abort running tests, finish the integration and generate the log file.
Tapp the lab for “Log” of the integration and find the following message at the very bottom:
“Test target SampleProjectWithTestsTests encountered an error (Timed out waiting 120 seconds for simulator to boot, current state is 1. If you believe this error represents a bug, please attach the log file at /Library/Developer/XcodeServer/Integrations/Integration-fcf4712184ca598c3d6bcfb63d0e09d3/Session-2015-11-03_16:23:36-2aLCaT.log)”

Since switching to El Capitan and Xcode 6, we got the time out if we had more than 1 simulator configured for integration, since upgrading to xcode 7.1 it happens literally every time.


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!