Xcode 9 - Test Target X Encountered an Error (Unable to Connect to Test Manager)

Test target X encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted

I have my notes and demo applications for both Cocoapods and Carthage here https://github.com/onmyway133/TestTarget

  • Make sure all frameworks are linked to the Test targets
  • Configure Runpath Search Paths to point to $(FRAMEWORK_SEARCH_PATHS)

More info

  • Run-Path Dependent Libraries

XCTests canceling prematurely

Problem resolved in comments. For future readers, here are some good things to check if you encounter similar issues:

  1. Check Xcode messages tab to look for build errors.
  2. Restart device/simulator as appropriate. This fixed the problem in this case.
  3. Uninstall/reinstall app on device/simulator.
  4. Are certs/provisioning profiles valid? Try generating new ones and re-running.
  5. Does it work on the simulator? If yes, this is likely an issue with the device itself.
  6. Are breakpoints hit when you run the code? If yes, then this is a test failure. If no, the problem is happening before the tests are even run (as was the case here).

Xcode 9.4 : Error generating code coverage

Is is possible you are running on device and it is locked?

The same thing just happened for me ("Error Generating Code Coverage" when trying to run all tests) and then I realized that Xcode was trying to build to my phone, which was locked. It ran ok on my phone after I unlocked it (and fine on the simulator as well).

Xcode 9.4 : Error generating code coverage

Is is possible you are running on device and it is locked?

The same thing just happened for me ("Error Generating Code Coverage" when trying to run all tests) and then I realized that Xcode was trying to build to my phone, which was locked. It ran ok on my phone after I unlocked it (and fine on the simulator as well).



Related Topics



Leave a reply



Submit