8

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??

2 Answers 2

20

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

Sign up to request clarification or add additional context in comments.

Comments

0

CocoaPods's wiki: multiple-targets may give you some advices.

Change your podfile ,and run "pod install" again!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.