React Native 日常報(bào)錯(cuò) 'config.h' file not found

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

image.png

終端輸入:

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']

image.png

解決方法(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'

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中手動(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-native/React和(SRCROOT)/../../React- 并標(biāo)記為遞歸。

image.png

image.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容