解決react-native run-ios報錯問題--Print: Entry, ":CFBundleIdentifier", Does Not Exist
Mac環境下,在命令列中run-ios構建時報錯:CFBundleIdentifier", Does Not Exist
開啟XCode,進入.xcodeproj檔案,執行,編譯時報錯:'boost/iterator/iterator_adaptor.hpp' file not found’
這個問題只在react native 0.45.0及以後的版本中出現,stackoverflow 上的各種方法均無效。
先貼出解決方法 如下:
這個問題產生原因:
/Users/你的使用者名稱/.rncache中boost_1_63_0.tar.gz,double-conversion-1.1.5.tar.gz,folly-2016.09.26.00.tar.gz,glog-0.3.4.tar.gz檔案不完整。或者node_modules/react-native/third-party 檔案不完整。
具體操作:
1、刪除/user/你的使用者名稱/.rncache目錄下的boost_1_63_0。重新下載,下載網址http://www.boost.org/users/history/version_1_63_0.html
2、開啟命令列工具,在專案目錄下輸入rm -rf node_modules && rm -rf ~/.rncache && yarn
3、npm install
4、react-native upgrade
5、react-native run-ios
_________________________________________________________________________
若以上方法無效,可採用下面的方法:
建立專案暫時先使用react-native init MyApp –version 0.44.3,指定某個版本。
你可以使用–version引數(注意是兩個槓)建立指定版本的專案。例如react-native init MyApp -version 0.44.3。注意版本號必須精確到兩個小數點。
相關文章
- Hadoop的mapreduce出現問題,報錯The auxService:mapreduce_shuffle does not existHadoopUX
- The operation, ‘DecodeJpeg/contents‘, does not exist in the graph.錯誤解決方法
- git中出現”the requested upstream branch ‘origin/master‘ does not exist“問題的解決GitAST
- Laravel Class env does not exist 問題排查Laravel
- SAP對工單做101收貨,報錯- Check table TFBEFU_CR entry 10 does not exist–對策
- SAP MM 對採購訂單執行收貨,報錯 - Table T169P entry ZNMI does not exist -
- Eclipse裡Tomcat報錯:Document base ……does not exist or is not a readable directory(圖文詳解)...EclipseTomcat
- 探索 react-native run-ios(android)ReactiOSAndroid
- streamlit run執行報錯,Invalid value: File does not exist: XXX.py
- 解決 Inkscape 報錯 Duplicate 問題
- Android解決The APK file app-debug.apk does not exist on disk.AndroidAPKAPP
- 解決eslint空格報錯等問題EsLint
- Error: The directory named as part of the path ./log/supervisord.log does not exist解決方案Error
- eclipse :報錯 ‘XXXX‘ does not name a type的解決辦法Eclipse
- 安裝vue/cli報錯問題解決Vue
- matplotlib中文報錯問題及解決方案
- Waring: /dev/centos/swap does not existdevCentOS
- Property [title] does not exist on this collection instance
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- react-native install 報錯 No git binary found in $PATH解決方法ReactGit
- 使用API28報錯問題及解決API
- jquery-weui微信支付報錯問題解決jQueryUI
- 解決vue使用Sass時候的報錯問題Vue
- Delta Magisk root後解決adb的報錯問題
- 解決MMM啟動監控報錯的問題
- 解決element---el-dialog--關閉報錯問題
- python3 print報錯Python
- ValueError: Length of values (141) does not match length of index (4278)問題的解決ErrorIndex
- 解決Sentinel module java.base does not “opens java.lang“ 問題Java
- Property 'context' does not exist on type 'NodeRequire'.ts(2339)ContextUI
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- 安裝kernel...src.rpm錯誤:warning: user mockbuild does not exist - using rootMockUI
- Jenkins報錯'Gradle build daemon disappeared unexpectedly'的問題解決JenkinsGradleUIAPP
- 解決fastjson反序列化時報錯的問題ASTJSON
- 記錄解決HttpServletResponse在引數報錯的問題HTTPServlet
- Uncaught Error: Bootstrap‘s JavaScript requires jQuery報錯問題解決ErrorbootJavaScriptUIjQuery
- 靜默安裝Oracle建庫時報Template General Purpose does not existOracle
- React-Native執行報錯問題彙總 以及Taro小程式異常React
- 解決 React-Native mac10.14.4 執行報錯 error Failed to build iOS projectReactMacErrorAIUIiOSProject