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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
xcodebuild test
vs xcodebuild build test
This is a sample project demonstrating an Xcode bug.
Related Radar link: https://openradar.appspot.com/22413115
bash test-fails.sh
did not fail if the iOS Simulator was running, only if you don't have the simulator open (which is usually the case on a CI server/service)bash test-ok.sh
first and then bash test-fails.sh
it'll work with Xcode 7.1, but not if you close the iOS Simulator and you just run bash test-fails.sh
bash test-fails.sh
won't even open itbash test-fails.sh
it failes in every caseorig.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.