It shows error “SenTestingKit.Framework not found” when trying to build/run Unit Test in Xcode

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 ~~ 🙂 ~~

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s