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

Varun Mehta picture Varun Mehta · Jan 25, 2016 · Viewed 28.9k times · Source

I have started working with OCMock to write test cases for the existing project that I have integrated in my project workspace. After following all the steps mentioned in this link.

When I first executed my test case it's giving the error above. I searched it and tried following some of the solutions like creating new target, restarting Xcode but it didn't help me out. Any idea?

Answer

onmyway133 picture onmyway133 · Mar 31, 2016

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