zoukankan      html  css  js  c++  java
  • ReactNative 报错 config.h not found / libfishhook.a cannot be found

    这里主要记录两个在 yarn 或者 npm install 之后后出现的问题

    1. React-Native config.h not found

    解决方案: 先 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 即可

  • 相关阅读:
    8月4日
    8月3日 hive配置
    8月2日
    8月1日
    7月31日
    7月30日
    7月29日
    7月28日
    第六周总结
    重大技术需求进度报告一
  • 原文地址:https://www.cnblogs.com/ChrisZhou666/p/10756640.html
Copyright © 2011-2022 走看看