2

I'm trying to use RedditKit to play around with the Reddit API for school, and I'm using Cocoapods despite not being overly familiar.

My Podfile looks like this:

platform :ios, '8.4'
link_with 'TestProj', 'TestProjTests'

pod 'RedditKit', "~> 1.3"

And I run pod install in the same directory with the latest version of Cocoapods (0.39.0). I open the new .xcworkspace and when I try to run the project it errors at the line in RedditKit.h that says #import "RKClient.h" stating:

'RKClient.h' file not found

But if I command-click the import statement it brings me to the file, so I know it's there.

What gives? What am I doing wrong here?

I've read other questions such as this question about ensuring your Configuration uses the pod files, but mine does. I even used the link_with suggestion to no avail. Similar thing suggested here and I can't seem to find why it's happening.

What should I be doing? How can I fix this?

Community
  • 1
  • 1
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
  • did you explicitly build the Pod target in your workspace? I've found I sometimes need to do that before a `.h` file included in a Pod gets picked up in my own project's targets. – Michael Dautermann Oct 29 '15 at 07:11
  • hey any luck resolving this? I am stuck in same problem. – va05 Apr 04 '16 at 10:10

0 Answers0