Got the solution finally. select info of the project then select Configuration select the dropdown Debug. From that list select your test target and change the None in Configurations Set Tab into Pods. Do the same in Release Tab also
参考:
AFNetworking Cause Error while using XCTest in Xcode5
CocoaPods’s wiki: multiple-targets may give you some advices