EarlGrey
EarlGrey copied to clipboard
Thread 1: EXC_BREAKPOINT in iPhone 12mini, iOS 15.0
I am trying to kick off a simple UI test,
func testExample() throws {
let app = XCUIApplication()
app.launch()
EarlGrey.selectElement(with: grey_accessibilityID("multiTxt")).perform(grey_tap()).perform(grey_typeText("hey"))
EarlGrey.selectElement(with: grey_accessibilityID("clearBtn")).perform(grey_tap())
EarlGrey.selectElement(with: grey_accessibilityID("multiTxt")).perform(grey_typeText("bye!"))
}
Got Thread 1: EXC_BREAKPOINT in iPhone 12mini with iOS 15.0:

On the other hand, it works pretty well in iPhone 7P with iOS 15.0.2:

After reading https://github.com/google/EarlGrey/issues/805 , and I think I know what might be happening here.
I updated the code to:
func testExample() throws {
let app = XCUIApplication()
app.launch()
}
And not sure why the app could not be launched.