It is more or less common error “SenTestingKit.Framework not found” that people sees when building/running Unit Test after adding it in an existing project in Xcode. It can be shown also with existing Unit Test project which may ran properly before. To fix this error simply follow the steps below:
Step 1
Select the project icon (blue XCode icon) in the Project Navigator and open the tab Build Settings.
Step 2
Goto: Linking > Bundle Loader
Add the following: $(BUILT_PRODUCTS_DIR)/Your_App_Name.app/Your_App_Name
Step 3
Goto: Unit Testing > Test Host
Add: $(BUNDLE_LOADER)
Step 4
Goto: Search Path > Framework Search Path
Add these 2 lines without double quotation (“) :
“$(SDKROOT)/Developer/Library/Frameworks”
“$(DEVELOPER_LIBRARY_DIR)/Frameworks”
Now Clean and Build the project. Hopefully your Project will Build and Run successfully this time 🙂
~~ 🙂 ~~ Happy Testing ~~ 🙂 ~~
Leave a comment