After many battles, these steps worked for me:
1) Project> Information
In configurations, set the Test Target to share the same configuration file as your main project (created by Cocoapods).

Now you should start getting some errors, because the XCUnit framework is missing, but now your external libraries imported with CocoaPod are visible in your test project.
2) In the test target> Build options, find the header search paths by adding:
$(DEVELOPER_DIR)/Platforms/iPhoneOS.platform/Developer/Library/Frameworks $(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks
The Unit Test structure is inside your Xcode application; these headers will make them publicly available later.
3) On the test target> Build Phases, add the SenTestingKit.framework parameter

And it should look like this:

From there, everything works for me. Good luck.
Jonathan P. Diaz
source share