Reputation: 1848
I have a project for OS X which uses RestKit (installed as git submodule). Yesterday I updated the RestKit submodule and I found out the use of AFNetworking (so I have to change some of my code which used RKClient).
The problem is that I cannot build my project anymore. I have to migrate my code yet, but the error is
RestKit.framework/Headers/RKHTTPRequestOperation.h:21:9: fatal error: 'AFNetworking.h' file not found
#import "AFNetworking.h"
If I open only the RestKit project, then the framework is successfully built, but the first time I include it (with #import <RestKit/RestKit.h>
) the above error appears!
BTW: doing in my RestKit folder git pull origin master
updates the module, but did not downloaded the AFNetworking files.. I manually copy the files in the folder. Am I missing something in the update procedure?
Thank you
Upvotes: 0
Views: 1943
Reputation: 1848
Solved by installing RestKit through CocoaPods...
(the accepted answer given in RestKit and AFNetworking build error did not worked for me.. but the advice to install cocoapods yes)
Upvotes: 0
Reputation: 7304
cd into RestKit directory, and then do
git submodule init
git submodule update
That will pull the necessary AFNetworking files. Then rebuild.
Upvotes: 2