2016-09-12 74 views
1

這是在星期五工作。代碼沒有變化。 (除了在Mac中進行時間機器備份)。反應本機run-ios失敗

但自今天起react-native run-ios似乎並沒有工作。模擬器出現了,但通常的loading http://localhost:8081不再顯示。沒有錯誤或任何跡象表明爲什麼這是失敗的。模擬器在主屏幕上顯示我的應用程序。雙擊它只是提出和應用程序似乎立即崩潰。

react-native run-android工作正常。

我不確定哪裏可以開始調試。 (對於整個應用程序開發來說是新的)。

的實地觀測,

  1. 當我運行npm start,然後運行react-native run-ios,它 通常是「檢測」是打包運行,並跳過launchPackager命令,但今天它不是的情況下,launchPackager打開不管包已經運行(是否已出現都與run-androidrun-ios
  2. 有通常低於線一旦應用程序開始加載,但今天他們才顯示出來,當我運行react-native run-android

    8:43:46 PM]找到依賴關係 轉換728/728(100%) [8:43:46 PM] find dependencies(553ms) [8:43:46 PM] request:/index.android .bundle?平臺的android =開發& =真&熱=假&縮小= FALSE(661ms)

當我運行反應本地日誌-IOS,我得到了下面的錯誤

Sep 12 20:53:15 sseshac-in-la com.apple.CoreSimulator.SimDevice.ADE00521-C04E-4EC5-8BE2-FE729523A0B9.launchd_sim[3812] (UIKitApplication:org.reactjs.native.example.X[0x3f02][4589]) <Notice>: Service exited due to signal: Abort trap: 6 
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1 
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>: 
Sep 12 20:53:15 sseshac-in-la SpringBoard[3828] <Warning>: Application 'UIKitApplication:org.reactjs.native.example.X[0x3f02]' crashed. 
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1 
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>: 
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Warning>: notify_suspend_pid() failed with error 7 
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1 
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>: 
Sep 12 20:53:15 sseshac-in-la SpringBoard[3828] <Warning>: Reply Error: Connection interrupted 
Sep 12 20:58:36 sseshac-in-la routined[3817] <Error>: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 

更新: 我認爲根本原因似乎以下錯誤

<Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bundleURL must be non-nil when not implementing loadSourceForBridge' 

請注意,我用的陣營原生0.32。我明白現在它「檢測」而不是硬編碼bundleUrl。如果有人能扔在哪裏這個「檢測」輕,將有助於

+0

似乎與HTTPS檢查:// github.com/facebook/react-native/issues/9218。目前還沒有解決方案。 –

回答

3

問題竟然是我錯過了在/ etc中的條目/主機

127.0.0.1 localhost 

我仍然沒有任何線索爲什麼它會在之前工作。但是,解決它

+0

同樣在這裏。由於其他原因一直在爲我的主機文件搞亂,回來找到了破壞的項目。簡單地恢復我的/私人/ etc /主機解決了這個問題 – Tom

+0

這是驚人的救生答案隊友.. phew:| :|謝謝 –