Ran into a problem with our tests failing for iOS yesterday on GitHub Actions. Others were having no problem, but my branch was failing every time. There wasn’t that many changes either, mostly bumping the version number for a new release.
encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test crashed with signal abrt before starting test execution.
If I had been able to get a screenshot I would have saved a lot of time. Instead I spent all day and some of my evening trying to figure out what was causing my test phase with Fastlane to fail, but not other people’s branches. In the end a small bit for something related, but not quite the same error log about the push notifications prompt being on screen and stopping everything led me to realize our prompt on launch could be the problem. So since we don’t test notifications automatically, at least not yet, I just prevented the app from asking for permission on launch when running tests. With the following:
guard NSClassFromString("XCTest") == nil else { return }