RestKit and AFNetworking build error

Aran Mulholland picture Aran Mulholland · Dec 7, 2012 · Viewed 7.2k times · Source

When I attempt to import the RestKit api into a project I get the following error:

  /Documents/Code/RestTest/RestKit/Code/Network/RKHTTPRequestOperation.h:21:9:
 'AFNetworking.h' file not found

I have installed RestKit as a git submodule, how do I resolve RestKit's dependency on AFNetworking?

Answer

allaire picture allaire · Dec 7, 2012

Once cloned, simply do in the RestKit directory:

git submodule update --init --recursive

This will pull the AFNetworking version RestKit needs