Assertion Failure: UI Testing Failure - Failure attempting to launch

Originator:rohitm
Number:rdar://24255593 Date Originated:20/01/2016
Status:Open Resolved:Open
Product:Developer Tools Product Version:Xcode 7.3, iOS 9.3.1
Classification:Serious Bug Reproducible:Sometimes
 
Summary:
While running the UI test suite with multiple test cases, we are getting the following error

Assertion Failure: UI Testing Failure - Failure attempting to launch <XCUIApplicationImpl: 0x13cf55660 com.mycompany.mail at /Users/rohit/Library/Developer/Xcode/DerivedData/MobileMail-bdiqsmmgwqjrwbclcpqxlkbpghlq/Build/Intermediates/CodeCoverage/Products/Debug-iphoneos/WorxMail.app>: Error Domain=XCTestIDEInterfaceErrorDomain Code=1 "API violation: token was nil." UserInfo={NSLocalizedDescription=API violation: token was nil.}
(null)

Steps to Reproduce:


Expected Results:
Should not fail with this error

Actual Results:
Failing with this error

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!