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

I install RestKit v0.25.0 with CocoaPods v0.39 in Xcode 7.1 and have problems with import. When I used CocoaPods v0.38.2, everything was awesome.
File "RKHTTPUtilities.h" not found. It solves after a set of recursive headers in the search path for "$ {PODS_ROOT} / Headers / Public / RestKit". But I get this error 'lcl_RK.h' file not found in RKLog.h.

I am also trying to do this .

+3
source share
2 answers

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

Explain that the lcl_RK.h file is located in the RestKit / Vendor / LibComponentLogging / Core path folder, all other files in the RestKit / Code / folder. When CocoaPods creates a header folder, it skips the lcl_RK.h file.

+7
source

If anyone is having problems with RestKit 0.26.0 and Cocoapods 1.0.1 in a Swift project using Xcode 7.3, hope this helps!

This solution worked, at least in 2016-06-03, but since it uses certain git branches, they may be merged, so if this does not work for you, check if these git branches have been merged / moved / deleted .

Clear in front of everyone

Quit Xcode

rm -rf Pods
rm -rf MyApp.xcworkspace  
rm -rf ~/Library/Caches/CocoaPods
rm -rf ~/Library/Developer/Xcode/DerivedData

mcfedr RestKit

"" AFNetworking

pod 'AFNetworking', :git => 'https://github.com/mcfedr/AFNetworking.git', :branch => 'reachability'
pod 'RestKit', :git => 'https://github.com/mcfedr/RestKit.git', :branch => 'pods1'

@import RestKit;

!

+6

Source: https://habr.com/ru/post/1614682/


All Articles