bitrise-io/simulator-launch-timeout-includes-build-time

Name: simulator-launch-timeout-includes-build-time

Owner: Bitrise

Description: null

Forked from: e28eta/simulator-launch-timeout-includes-build-time

Created: 2015-09-28 11:14:27.0

Updated: 2015-09-28 14:07:47.0

Pushed: 2015-11-17 09:39:59.0

Homepage: null

Size: 19

Language: Objective-C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

xcodebuild test vs xcodebuild build test

This is a sample project demonstrating an Xcode bug.

Related Radar link: https://openradar.appspot.com/22413115

Given
  1. An iOS application
  2. created from the “Single View Application” template
  3. whose build takes > 120 seconds
  4. faked with a Run Script phase that sleeps for 125 seconds
Notes
orig.test-only-fails.sh / test-fail.sh

Note: test-fail.sh is a minimized version of the original orig.test-only-fails.sh script, fails just like the original, more verbose version.

This build script runs xcodebuild test. During the build process, xcodebuild logs:

xcodebuild[54591:624937]  iPhoneSimulator: Timed out waiting 120 seconds for simulator to boot, current state is 1.

Just after xcodebuild touches the xctest bundle, it reports

** TEST FAILED **

without even trying to launch the simulator.

orig.build-and-test-succeeds.sh / test-ok.sh

Note: test-ok.sh is a minimized version of the original orig.build-and-test-succeeds.sh script, succeeds just like the original, more verbose version.

This build script runs xcodebuild build test. It takes just as long as the previous script to execute, but the iPhoneSimulator does not time out waiting to boot. Instead, the tests launch and run successfully.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.