Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 686
Varun Mehta Avatar asked Jan 25 '16 10:01

Varun Mehta


2 Answers

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
like image 90
onmyway133 Avatar answered Nov 05 '22 05:11

onmyway133


I'm using carthage and problem for me was searching for dependencies in a test target. Fix:

Add $(PROJECT_DIR)/Carthage/Build/iOS to Runpath Search Paths

You can find reference here: Carthage issue

like image 18
Radosław Cięciwa Avatar answered Nov 05 '22 07:11

Radosław Cięciwa