15

I'm working on getting an iOS project ready for Xcode 10 and Swift 4.2. So far I can build and use the app. UI Tests also run properly.

However, I'm having trouble running Unit Tests, getting the following error:

MyApp.app (37040) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. Underlying error: Test session exited(1) without checking in.)

I've seen the "Early unexpected exit" error before, specially when working on CI and iOS Simulator fails to launch. But I believe this is the first time I see the "Test session exited(1) without checking in" part.

I would like to add that we are getting this error only when running tests from the Xcode IDE. All tests pass properly when run from the command line with xcodebuild.

iwasrobbed
  • 46,496
  • 21
  • 150
  • 195
Eneko Alonso
  • 18,884
  • 9
  • 62
  • 84

2 Answers2

1

Deleting and adding Unit tests target worked for me. Don't forget to check new target in "Target Membership" for tests files.

Sergey Armodin
  • 123
  • 1
  • 7
0

If anybody still experience this issue this answer helped me. Set Always Embed Swift Standard Libraries to No in the projects settings. I did it for the UI test target.

stellz
  • 130
  • 1
  • 8