情況:根據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
