iOS技术

<Masonry/Masonry.h> file n

2016-07-20  本文已影响1854人  浮生若梦的简书

用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的文件给删除然后在通过+添加上,然后在运行工程就发现工程好了。

上一篇 下一篇

猜你喜欢

热点阅读