7
votes

Expected Result: You check the "Test" checkbox when creating a bot and Xcode server flawlessly executes mt tests like in the WWDC.

enter image description here

Result: Xcode barfs up a bunch of simulator timeout errors and the integration fails.

enter image description here Test target "xxx" 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-0e5a387ef456a57b7a2d5a90d004256d/xxxx.log)

Environment:

  • Xcode 7.0.1
  • Server 5.0.4
  • OSX 10.11
  • Replicated on two different machine with two different projects.
  • Also, experienced this on OSX 10.10 and Xcode 6

Real Problem: I'm a competent enough programmer with several years of iOS experience. It's hard to believe, although maybe it shouldn't be, that something that looks so simple in WWDC would fail so hard for on two different operating systems and versions of Xcode.

Notes:

  • I'm running Xcode and Xcode Server from the same machine. I don't have to SSH in.
  • The integration log file path that Xcode suggests checking is invalid, though I can get the raw build log from the Xcode

Here is a list of other people having similar issues, maybe it will help others:

1
I have found iOS sims to be very picky on CI situations. We recenlty moved away from TeamCity to XCode Server to OS X Server and stuff just works now (fingers crossed). I am however reseting the sims before every run of UI tests.juhan_h
How do you reset the simulators? Can you describe? And more interesting, can you see the sims running on the buildserver?blackjacx

1 Answers

2
votes

Please duplicate the radar https://openradar.appspot.com/23386199 so apple hopefully recognizes this strange behaviour

This worked for me: Xcode server, bots, continuous integration, and unit-testing on the simulator