xcode文件找不到---“AFNetworking.h”file not found

来源:互联网 发布:知网数据期刊论文 编辑:程序博客网 时间:2024/06/15 19:40

今天遇到一个很奇怪的问题,在本地通过cocoapods引入AFNetworking包后,文件引入报错:“AFNetworking.h”file not found,但是拷贝到另一台电脑,能够重新运行,本以为是xcode出了问题,所以重新安装了xcode,但是问题依然存在。

后来在网站上看到一个解决“AFNetworking.h”找不到的解决方案。原文的答案是:

In XCode go to Product -> Scheme -> Manage Schemes. There delete the project (maintaining the pods) and add the project again. It worked for me.

大体就是说把Scheme里面的当前项目删除后重新安装即可。

通过实验已经解决我的问题。

出自:http://blog.csdn.net/colin_smile/article/details/47775183

0 0
原创粉丝点击