The error is that RestKit.h was not found.

I'm not sure if this is a RestKit problem, and I tried reinstalling RestKit using CocoaPods many times, but I end up with this error:

<RestKit/RestKit.h> file not found 

Everything compiles fine and RestKit works. I set the header search paths to $(inherited) , like other linker flags.

This is unsuccessful, because now autocomplete for these classes does not work.

Ive tried clearing, deleting the derived data and restarting Xcode, all to no avail.

+7
source share
2 answers

I came across this question having the same problem, but I had a completely different solution that worked right away.

For some reason, sometimes a project seems to lose control over some of the settings that apply to CocoaPods. In my case, this was caused when I downloaded a project from a repository that was configured by someone else - even running the “install packages” again did not remove the compilation error.

I finally came across a solution, the project should use the Pods configuration files for your purpose. Go to the "Information" tab on the project settings page, open the "Configurations" section. Expand both the Debug and Release options, make sure that the configuration of the containers is configured in your project. If not, click on the drop-down list and select "pods" for Debug and Release - now compile and the error should go away.

Here is an image showing exactly which part of the Xcode configuration I am talking about.

Pods Configuration set for project

+9
source

I believe the problem is more with Xcode than with cocoapod itself. I saw this problem on other containers that I imported, and where they do not autocomplete headers. As Keith said in the comments, you should be able to import the title you need, and the rest of the code should autofill from there.

0
source

All Articles