運行.xcworkspace項目后報錯:'React/RCTBundleURLProvider.h’ file not found


情況:根據https://github.com/rebeccahughes/react-native-device-info添加依賴庫,運行.xcworkspacea項目后報錯

解決:Delete node modules, then run npm install (or better yet yarn) and after everything has finished downloading, run react-native upgrade which should give you the option to replace old files with the template ones, by doing so you re-link your native dependencies in react-native which should fix your problem. Of course don't forget to clean your project in Xcode

翻譯:刪除node modules文件夾(一般在根目錄),然后運行 npm install(也是在根目錄),install 結束后在運行 react-native upgrade

詳細:https://stackoverflow.com/questions/40368211/rctbundleurlprovider-h-file-not-found-appdelegate-m


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM