Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AFNetworking Cause Error while using XCTest in Xcode5

I am using Xcode 5 and now just started unit testing on my existing project, for that I added the CocoaTouch Unit Testing Bundle as a target (Target Name is : MyAppTests) to my project.I was previously added AFNetworking library using CocoaPods,while I am running the test Case I got the error AFNetworking.h file not found. I added AFNetworking.h in the Tests.m but issue till remains. Is there any additional setting s for including the Pods to my testing target??

like image 377
LML Avatar asked Nov 15 '13 06:11

LML


1 Answers

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

like image 98
LML Avatar answered Nov 15 '22 21:11

LML