React-Native Issue: PCH was compiled with module cache path
最近React-Native專案中發現一個奇怪的問題:
當執行:
react-native run-ios
的時候,發生如下錯誤:
PCH was compiled with module cache path '/Users/tyler/workspace/html5space/HappyTime/ios/build/ModuleCache/HST39TUTS9TS', but the path is currently '/Users/tyler/workspace/webstormspac/react-native-template/ios/build/ModuleCache/HST39TUTS9TS'
react-native AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
因為這個ios工程我在本地複製貼上過,也就是說工程位置轉移了,之前是沒有問題的。在新的工程位置執行命令才發生此問題。
探索一番,找到了解決方案:
首先我們在ios工程目錄下找到這個資料夾:
刪除ModuleCache檔案,然後重新執行:
react-native run-ios
即可成功執行,build success!
相關推薦
React-Native Issue: PCH was compiled with module cache path
最近React-Native專案中發現一個奇怪的問題: 當執行: react-native run-ios 的時候,發生如下錯誤: PCH was compiled with module cache path '/Users/tyler/wor
The database cluster was initialized with RELSEG_SIZE 1048576, but the server was compiled with RELSEG_SIZE 8388608
database physical 都在 script back 對應關系 com 發現 logs 由於一次誤操作,將線上機器的數據庫程序目錄刪除,雖然不影響程序的正常使用,數據也未丟失,但後面如果出現服務器宕機或數據庫宕機,數據庫將無法啟動,而且數據庫對應的編譯參數也
在執行Loaded runtime CuDNN library: 7103 (compatibility version 7100) but source was compiled with 7003
最後錯誤程式碼為134(6 signal)(大概是這樣,錯誤解決了記錄一下,錯誤忘了截圖) 環境是cuda8.0,cudnn7.05,(在Titan上,cuda8.0、tensorflow1.4正好對應cudnn6.0,但這次GPU為GTX1070 貌似和Titan有區別),出
[IOS]'Project Name' was compiled with optimization
今天除錯的時候發現變數都不能查看了。在「lldb」中通過「po」命令來檢視總是提示變數未找到。 環境 xcode 7, Swift 2 錯誤提示 ‘XXXX’ was co
關於新版本react-native報錯 :Cannot find module 'invariant'
剛接觸React Native,安裝配置好所有的環境,建立的第一個應用時報瞭如下錯誤: Cannot find module 'invariant' 搞了半天沒搞好,在網上搜了果然有遇到這個問題的,有的說卸掉npm,node,nvm之後重灌,覺得不靠譜就放棄了; 採用了
More than one file was found with OS independent path 'lib/armeabi-v7a/libanw.14.so'
這個錯的意思就是不止一次匯入了同一個path所在名稱的依賴,編輯器就不知道以哪一個為準了。解決的方法只需要在build.gradle(Module: app)裡面,加上一段: packagingOptions { //避免重複
More than one file was found with OS independent path 'assets/ap1.data'
在android studio中匯入一些依賴的時候出現的這個錯誤,網上搜到的和我的path的內容都不相同,但是這不重要,重要的是解決方案是相同的。 這個錯誤的意思是同樣的依賴路徑存在兩個,說人話就是兩次匯入了同一個名稱的依賴,然後系統就不知道要以哪一個為準了,這種問題的解決辦法也很簡單,在bui
Android Studio編譯失敗:More than one file was found with OS independent path 'META-INF/proguard/androidx
報錯: Execution failed for task ‘:app:transformResourcesWithMergeJavaResForDebug’. More than one file was found with OS independent path ‘ME
Android Studio 報錯:More than one file was found with OS independent path 'META-INF/xxxxxx'的解決辦法
轉載:https://blog.csdn.net/realliuning/article/details/80010591 轉載:https://blog.csdn.net/wa172126691/article/details/84863171 今天在Android Studio中編譯工程
Android 整合環信More than one file was found with OS independent path 'assets/Icon_start.png'
問題描述: 整合環信easeui 執行專案出現 Error:Execution failed for task ‘:app:transformResourcesWithMergeJavaResF
more than one file was found with os independent path'com/unionpay/blepayservice/'
專案引用jar衝突或有相同的兩份以上存在,系統發現了多個路徑,造成系統不知道指向那個報錯:more than one file was found with os independent path 'com/unionpay/blepayservice/'報錯Error:Ex
More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
今天在Android Studio中編譯工程的時候,遇見了一個奇怪的問題,報錯如下: Error:Execution failed for task ‘:app:transformResourcesWithMergeJavaResForDebug’.
React Native出現"Native module cannot be null"問題
log blog http linking book images cnblogs es2017 ios 經查跟PushNotification有關,需要手動完成Linking。 兩步解決此問題: 配置Linking Libraries:https://facebook
[React Native] Reduce Long Import Statements in React Native with Absolute Imports
other absolute fig Go react project only port gen In large React Native projects, it’s common to have long relative import paths li
React native Configuration with name 'default' not found.
reac sharp key nat gap all config IT resolve 添加插件後出現異常 FAILURE: Build failed with an exception. * What went wrong: A problem occurred c
React Native: Unable to resolve module 'accessibilityinfo'
eset clear install ble ive node tmp 6.0 acc 官方解決方案: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` fol
解決React Native:Error: Cannot find module 'asap/raw'
在使用react-native-tab-navigator元件的時候啟動報如下錯誤: Error: Cannot find module 'asap/raw' at Function.Module._resolveFilename (internal/modules/cjs/loader.j
RN異常:"Unable to resolve module `react-native/Libraries/vendor/emitter/EventEmitter`
1.基本原因:因為版本的不同使得EventEmitter層級目錄發生變化,而最終導致無法找到該檔案 2.解決方法步驟如下: a.首先先安裝EventEmitter npm install EventEmitter b.如果還報錯的話,試著
react-native 500 Unable to resolve module 'AccessibilityInfo', when trying to create release bundle.
react-native 在pc端使用模擬器時遇到的RN版本衝突問題的解決方案: 配置react-native環境中,編譯執行React Native 應用時,出現紅屏,500錯誤。錯誤:“Unable to resolve module 'AccessibilityInf
React Native --bundling failed: Error: Unable to resolve module /../react-transform-hmr/lib/index.js
前言 第一次執行 React Native,各種問題,坑死!!! 這裡總結幾個 bug 。 此處針對的 React Native 版本為 "react-native": "0.57.2" 問題一 sha