集成了一个插件后,就报:
‘folly/Portability.h’ file not found
#include “folly/Portability.h”
最终显示,这个问题显示是pod的问题。最后通过https://stackoverflow.com解决了。
To fix the issue you should make two things:
-
Add CxxBridge subspec
-
Point DoubleConversion and glog dependencies specs directly for Folly。
要在pod文件里面增加2个东西。显示如截图
重新编译问题得到解决。
(第二点添加的内容,我本来就有,所以只增加了第一点的内容])
参考链接:https://stackoverflow.com/questions/57165232/folly-portability-h-file-not-found-react-library