<Masonry/Masonry.h> file not found in .pch file

用cocoapods导入了Masonry在.pch文件中引入时却出现了下面的问题


改为#import "Masonry.h" #import<Masonry.h> 都报错
按着command 也能点进去啊,what?,xcode要搞事情啊,重启Xcode....,重启电脑....,都不行。此刻我的内心是

然后网上找一找,在stackoverflow找到了ios - "AFNetworking.h" file not found in .pch file - Stack Overflow,里面提到了一个解决办法

This happened to me when I updated to AFNetworking 2.5.0 from 2.4.1 through Cocoapods.
In XCode go to Product -> Scheme -> Manage Schemes. There delete the project (maintaining the pods) and add the project again. It worked for me.Hope it helps ;)

翻译过来就是选择



进去后显示


把这个 工程 project的文件给删除然后在通过+添加上,然后在运行工程就发现工程好了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容