本文介绍了RestKit和AFNetworking构建错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将RestKit api导入项目时,我收到以下错误:

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

我已经安装了RestKit作为git子模块,如何解决RestKit对AFNetworking的依赖?

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

推荐答案

一次克隆,只需在RestKit目录中执行:

Once cloned, simply do in the RestKit directory:

git submodule update --init --recursive

这将拉动AFNetworking版本RestKit需要

This will pull the AFNetworking version RestKit needs

这篇关于RestKit和AFNetworking构建错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 21:22