Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native run-ios error #5

Open
xuanskyer opened this issue Jan 17, 2017 · 3 comments
Open

react-native run-ios error #5

xuanskyer opened this issue Jan 17, 2017 · 3 comments

Comments

@xuanskyer
Copy link

xuanskyer commented Jan 17, 2017

React packager ready.

2017-01-17 18:57 node[79168] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2017-01-17 18:57 node[79168] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
 ERROR  Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1007:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
~

** BUILD SUCCEEDED **


Installing build/Build/Products/Debug-iphonesimulator/MdccClient.app
No devices are booted.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/MdccClient.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
@manajay
Copy link

manajay commented Jun 2, 2017

2017-06-02 10:01:14.370 [fatal][tid:main] Unable to resolve module react/lib/ReactUpdates from /Users/pdid-7/Downloads/mdcc-client-master/node_modules/react-native/Libraries/react-native/react-native.js: Module does not exist in the module map or in these directories:
/Users/pdid-7/Downloads/mdcc-client-master/node_modules/react-native/node_modules/react/lib
, /Users/pdid-7/Downloads/mdcc-client-master/node_modules/react/lib

This might be related to facebook/react-native#4968
To resolve try the following:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.

@liuyanhongwl
Copy link

liuyanhongwl commented Aug 8, 2017

I had same problem, and I solve it use next step:

  1. upgrade 'react-native' React Native升级指南|v0.40+升级适配经验与心得
  2. then 'react-native run-ios' will error because Navigator is deprecated in react-native v0.43. We can use 'react-native-deprecated-custom-components' in next step:
    2.1. npm install react-native-deprecated-custom-components --save
    2.2. import {Navigator} from 'react-native-deprecated-custom-components'

@poberwong
Copy link
Owner

@liuyanhongwl Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants