UITeset will terminate immediately after app is launch

Since I start to wrote UITest, this keep happened with no waring, following image is the log, sensitive info has been replaced.

However, once I run app, then run test again, UITest just work out, it seems like a wired but, and the method just a working around bug to me,

I'm curious what the pressing lock button activity is doing in your first test. Pressing the lock button is not currently supported XCTest functionality. That seems like it could be part of the issue here

UITeset will terminate immediately after app is launch
 
 
Q