I can run XCUITests just fine on simulators, but when I try them on my device, the UITest icon is auto-clicked, and it fills the screen, freezes, then execution stops. The bug readout is "Test target GreetrUITests encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted).
Things I have tried: 1. Gone into my phone's settings -> developer -> enable UI Automation. 2. I don't have any cocoapods in my tests, only native XCUITests. 3. I have a provisioning profile for my app, I am able to run the app fine.
I might need to add a provisioning profile to the UITest but I don't know how to do that. I have also seen suggestions having to do with code-signing and paths, but I didn't understand the suggestions well enough to fix this.
I appreciate the help.
It works on my iphone 5s. I was using an iphone 5. iPhone 5 was released in 2012 which was 3 years before XCUITests were released in 2015 with xcode 7. I have xcode 9.0. Perhaps running UITests on iphone 5 is therefore deprecated.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.