Clement Prem
Clement Prem

Reputation: 3119

GHUnit with cocoa pods

I am managing project dependencies using cocoa pods. I added GHUnit target into my project and it is working fine.

I have a problem in importing pods (cocoa pods) files into GHUnit target.

For example, AFNetwork is added to my pod, how can I import AFJSONRequestOperation header into a GHUnit test class? (I conldn'd find the files when trying to add them manually in build phase).

Upvotes: 0

Views: 324

Answers (1)

Keith Smiley
Keith Smiley

Reputation: 63903

Take a look at my answer here. The idea is that you have to link your pods with both targets of your application with link_with which is documented here.

Example:

link_with ['MainTarget', 'TestTarget']

This will link all your pods with both so you can use the other pods in your tests.

Upvotes: 1

Related Questions