Update Restkit 'Lcl_Rk.H' File Not Found in Rklog.H

Update RestKit 'lcl_RK.h' file not found in RKLog.h

I found only one not the best way. Add "$(PODS_ROOT)/RestKit/Vendor/LibComponentLogging/Core" in headers search path for project target.

Explain: lcl_RK.h file is in folder path RestKit/Vendor/LibComponentLogging/Core, all other files in folder RestKit/Code/. When CocoaPods generates Headers folder, it misses lcl_RK.h file.

RKObjectMapping.h Not Found

After a while struggling, I noticed the error is not from RestKit. It comes from upgrading the latest version of cocoapods (0.39.beta.4).

The Header Search Path is not in recursive mode anymore.

The workaround is just downgrade the version of cocoapods to 0.38.0.

1) remove the latest version of cocoapod


sudo gem uninstall cocoapods

2) install the 0.38.0 version


sudo gem install cocoapods -v 0.38.0

Hope can help someone.

Updated:

Thanks Vig that we can do pod with a specific version:


pod _0.38.0_ update
pod _0.38.0_ install

Error that RestKit.h was not found

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

For whatever reason, sometimes a project seems to lose track of some settings that relate to CocoaPods. In my case it was triggered when I downloaded a project from a repository that had been set up by someone else - even running "pods install" again did not remove the compilation error.

I finally ran across the solution somewhere, the project needs to make use of Pods config files for your target. Go into your project settings "Info" tab, open the "Configurations" section. Expand both Debug and Release, check to make sure that for your project have the "pods" configuration set. If not, click on the drop down and select "pods" for Debug and Release - now compile and the error should go away.

Here's an image showing exactly what part of the XCode configuration I'm talking about.

Pods Configuration set for project

Fail to Import RestKit with Cocoapods Dynamic Frameworks

This is a bug currently in RestKit. Sam Giddin has an open PR right now that fixes the issue. I made a fork of RestKit that I'm using in my project with the commits from the PR to get around this issue until they merge in the fixes and make a new release.

Restkit has suddenly stopped compiling today

OK, so in the end, i had to add this to the .pch file. I have never had it there, and my project has built for over a year without it. Would be great to know why i suddenly had to include it...

#if __IPHONE_OS_VERSION_MIN_REQUIRED
#import
#import
#else
#import
#import
#endif


Related Topics



Leave a reply



Submit