ReactNative 报错 config.h not found / libfishhook.a cannot be found
这里主要记录两个在 yarn 或者 npm install 之后后出现的问题
1. React-Native config.h not found
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。解决方案: 先 cd 到项目nodeModules 目录下 然后执行下面两个命令即可:
cd node_modules/react-native/third-party/glog-0.3.4
../../scripts/ios-configure-glog.sh
具体的 glog版本号还要依你的项目而定
2. React-Native websocket libfishhook.a cannot be found
解决方案: 打开工程 Libraries -> RCTWebSocket -> target -> Build Phases -> Link Binary With Libraries
删除旧的 libfishhook.a 重新添加即可
然后 clean 重新 build 即可

更多精彩