React Native 日常報(bào)錯(cuò) 'config.h' file not found
參考網(wǎng)頁[https://blog.csdn.net/qq_28978893/article/details/78720488]

終端輸入:
cd node_modules/react-native/third-party/glog-0.3.4
// 第一步。找到路徑,進(jìn)入glog-0.3.4文件里
../../scripts/ios-configure-glog.sh
// 第2步。
React Native 日常報(bào)錯(cuò)['~~~~~/node_modules/react-native/Libraries/WebSocket/libfishhook.a']

解決方法(https://www.cnblogs.com/pengkun06Gmail/p/9747495.html)
1501314-20181006153959214-257946384.png

React Native 日常報(bào)錯(cuò)
error: Build input file cannot be found: '../node_modules/react-native/third-party/double-conversion-1.1.6/src/strtod.cc'

解決方法查看原文: 命令行,輸入一下倆行
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中手動(dòng)添加組件
在XCode中,在項(xiàng)目導(dǎo)航器中,右鍵單擊Libraries?將文件添加到[您的項(xiàng)目名稱]轉(zhuǎn)到node_modules?infact-native-fs并添加.xcodeproj文件
在XCode中,在項(xiàng)目導(dǎo)航器中,選擇您的項(xiàng)目。lib*.a將RNFS項(xiàng)目添加到項(xiàng)目的構(gòu)建階段?鏈接二進(jìn)制庫。單擊之前在項(xiàng)目導(dǎo)航器中添加的.xcodeproj文件,然后轉(zhuǎn)到Build Settings選項(xiàng)卡。確保打開“全部”(而不是“基本”)。查找標(biāo)題搜索路徑并確保它包含(SRCROOT)/../../React- 并標(biāo)記為遞歸。


