React Native 日常报错 'config.h' file not found

React Native 日常报错 'config.h' file not found
参考网页[https://blog.csdn.net/qq_28978893/article/details/78720488]

React Native 日常报错 'config.h' file not found_第1张图片
image.png

终端输入:

cd node_modules/react-native/third-party/glog-0.3.4
//  第一步。找到路径,进入glog-0.3.4文件里

../../scripts/ios-configure-glog.sh
//  第2步。

React Native 日常报错['~~~~~/node_modules/react-native/Libraries/WebSocket/libfishhook.a']

React Native 日常报错 'config.h' file not found_第2张图片
image.png

解决方法(https://www.cnblogs.com/pengkun06Gmail/p/9747495.html)

React Native 日常报错 'config.h' file not found_第3张图片
1501314-20181006153959214-257946384.png

React Native 日常报错
error: Build input file cannot be found: '../node_modules/react-native/third-party/double-conversion-1.1.6/src/strtod.cc'

React Native 日常报错 'config.h' file not found_第4张图片
image.png

解决方法查看原文: 命令行,输入一下俩行

node_modules/react-native/third-party/到这里查看一下他到底是0.3.几,下面就改成glog-0.3.几

cd node_modules/react-native/scripts && ./ios-install-third-party.sh && cd ../../../
cd node_modules/react-native/third-party/glog-0.3.5/ && ../../scripts/ios-configure-glog.sh && cd ../../../../

在XCode中手动添加组件

在XCode中,在项目导航器中,右键单击Libraries➜将文件添加到[您的项目名称]转到node_modules➜infact-native-fs并添加.xcodeproj文件

在XCode中,在项目导航器中,选择您的项目。lib*.a将RNFS项目添加到项目的构建阶段➜链接二进制库。单击之前在项目导航器中添加的.xcodeproj文件,然后转到Build Settings选项卡。确保打开“全部”(而不是“基本”)。查找标题搜索路径并确保它包含(SRCROOT)/../../React- 并标记为递归。

React Native 日常报错 'config.h' file not found_第5张图片
image.png

React Native 日常报错 'config.h' file not found_第6张图片
React Native 日常报错 'config.h' file not found_第7张图片
image.png

你可能感兴趣的:(React Native 日常报错 'config.h' file not found)