集成了一个插件后,就报:
‘folly/Portability.h’ file not found
#include “folly/Portability.h”
最终显示,这个问题显示是pod的问题。最后通过https://stackoverflow.com解决了。
To fix the issue you should make two things:

  1. Add CxxBridge subspec

  2. Point DoubleConversion and glog dependencies specs directly for Folly。
    要在pod文件里面增加2个东西。显示如截图
    在第二点,我本来就有,所以只增加了第一个
    重新编译问题得到解决。
    (第二点添加的内容,我本来就有,所以只增加了第一点的内容])
    参考链接:https://stackoverflow.com/questions/57165232/folly-portability-h-file-not-found-react-library

Logo

开源鸿蒙跨平台开发社区汇聚开发者与厂商,共建“一次开发,多端部署”的开源生态,致力于降低跨端开发门槛,推动万物智联创新。

更多推荐