簡體   English   中英

嘗試在iPhone上構建React Native應用時出現'npm start'錯誤?

[英]Getting 'npm start' error when trying to build React Native app on iphone?

當我對iphone 6進行構建時,紅屏在設備上出現以下錯誤:

"Could not connect to development server. Ensure node server is running - run 'npm start' from React root

The operation couldn't be completed.
(NSURLErrorDomain error - 1004)"

我在React Packager的終端中收到以下錯誤:

"Unhandled rejection Error: ENOENT, open '/Users/rahulsharma/Desktop/rcapp/.git/index.lock'"

最后,我在xcode控制台中得到了這個:

2015-05-06 12:37:48.631 rcapp[808:262187] CLTilesManagerClient: XPC_ERROR_CONNECTION_INVALID!

有任何想法嗎?

這是git中的代碼:

https://github.com/rahul1346/rcapp

查看AppDelegate.m並進行相應更新。

// To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
// iOS device are on the same Wi-Fi network.
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM