Xcode bot error: Early unexpected exit, operation never finished bootstrapping

前端 未结 1 671
暗喜
暗喜 2021-02-19 12:08

I have a project written in Swift with a main target and two test targets: one for unit testing using quick framework and it has 3 KIF tests. The other target has the XCUITests.

1条回答
  •  迷失自我
    2021-02-19 12:51

    I was facing the same error (although I was using fastlane to run my UI Tests).

    The issue was due to the simulator being stuck on a system alert which the UI Tests did not handle. After that all my tests failed and subsequent runs continued to fail as the simulator was not responding.

    I logged into the machine and click OK on the disrupting alert and everything was back to normal.

    In my case the alert came up since the application was trying to register of APNS and the

    "App Name" would like to enable Notifications alert was displayed. Skipping the APNS registration for UI Tests prevented the issue from popping again.

    0 讨论(0)
提交回复
热议问题