In a new project I have this simple test
#import #import \"ViewController.h\" @interface ViewControllerTests : XCTestCase @end @imp
On Xcode 6, I was able to fix this problem by checking "Allow testing Host Application APIs" in the test target > General > Testing.