Test fail because "App state is still not running active, state = XCApplicationStateNotRunning"

Originator:Damien.Gavard
Number:rdar://29234401 Date Originated:2016-11-12
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.1
Classification: Reproducible:
 
Summary:
Our Xcode UI test fail randomly with the following error :

UI Testing Failure - '<XCUIApplicationImpl: 0x608000420ac0 com.tapdm.LiveScore.Foo at /Users/vagrant/Library/Developer/Xcode/DerivedData/Livescore-bfkuwgxmaiprwncotahtjjhoigbm/Build/Products/Debug-iphonesimulator/Foo.app>' App state is still not running active, state = XCApplicationStateNotRunning

The following files have been attached :
- xcodebuild log
- Xcode project

Steps to Reproduce:
1. Test "Foo" scheme on Continuous Integration server (Bitrise)

Expected Results:
Tests should be successful

Actual Results:
Xcode UI tests fail randomly

Version:
Xcode 8.1

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!