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 fails on mac #162

Closed
iSamuelBarney opened this issue Nov 13, 2016 · 10 comments
Closed

react-native run-ios fails on mac #162

iSamuelBarney opened this issue Nov 13, 2016 · 10 comments

Comments

@iSamuelBarney
Copy link

[11/12/2016, 10:18:19 PM] Building Dependency Graph
[11/12/2016, 10:18:19 PM] Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node[3583] (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:1026:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1274:11)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
~
Process terminated. Press to close the window

other terminal gives(at the same time):

Signing Identity: "-"

/usr/bin/codesign --force --sign - --timestamp=none /Volumes/LaCie/sam.lacie/snowflake/ios/build/Build/Products/Debug-iphonesimulator/snowflake.app/PlugIns/snowflakeTests.xctest

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/snowflake.app
No devices are booted.
Launching mobi.snowflake.demo
No devices are booted.

I'm fairly new to using a mac with dev & react-native as well so please let me know if I'm missing something keep in mind I followed the install instructions correctly...

git clone
npm install
cp config.js
react-native run-ios // also the test command works and says I should have no errors and everything passed.... please help SOS

@bartonhammond
Copy link
Owner

What version of xcode do you have? I'm on 7.3.1

You could install Genymotion and set up an Anroid environment to confirm it
works.

On Nov 12, 2016 10:25 PM, "iSamuelBarney" notifications@github.com wrote:

[11/12/2016, 10:18:19 PM] Building Dependency Graph
[11/12/2016, 10:18:19 PM] Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 FSEventStreamStart:
register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-12 22:18 node3583 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:1026:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1274:11)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.
~
Process terminated. Press to close the window

other terminal gives(at the same time):

Signing Identity: "-"

/usr/bin/codesign --force --sign - --timestamp=none /Volumes/LaCie/sam.lacie/snowflake/ios/build/Build/Products/Debug-iphonesimulator/snowflake.app/PlugIns/snowflakeTests.xctest

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/snowflake.app
No devices are booted.
Launching mobi.snowflake.demo
No devices are booted.

I'm fairly new to using a mac with dev & react-native as well so please
let me know if I'm missing something keep in mind I followed the install
instructions correctly...

git clone
npm install
cp config.js
react-native run-ios // also the test command works and says I should have
no errors and everything passed.... please help SOS


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#162, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ABORPCAjAGSuFqa6o0cUJOzO4oentFX2ks5q9pElgaJpZM4KwmvA
.

@iSamuelBarney
Copy link
Author

iSamuelBarney commented Nov 13, 2016

xcode version: 8.1

I'm checking out Genymotion now, thanks for the advice.

@bartonhammond
Copy link
Owner

Yeah, I'm not up to xcode 8. If you figure it out, consider a PR.

On Nov 13, 2016 5:59 PM, "iSamuelBarney" notifications@github.com wrote:

xcode version: 8.1

I'm checking out Genymotion now, thanks for the advise.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#162 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABORPFbV13hsNsm5binPxBp65eQeDkC6ks5q96RcgaJpZM4KwmvA
.

@iSamuelBarney
Copy link
Author

I'm looking @ facebook/react-native#8108 relating to issues with react-native on xcode 8+ build fails... also I've fixed 1 of the 2 build fail errors so only 1 left. Will update if next fix works.

@bartonhammond
Copy link
Owner

Great. I have limited band width so upgrading is difficult.

On Nov 13, 2016 6:14 PM, "iSamuelBarney" notifications@github.com wrote:

I'm looking @ facebook/react-native#8108
facebook/react-native#8108 relating to issues
with react-native on xcode 8+ build fails... also I've fixed 1 of the 2
build fail errors so only 1 left. Will update if next fix works.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#162 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABORPDqjjKlsv59Om7DbKTIoalWUPuqvks5q96fTgaJpZM4KwmvA
.

@iSamuelBarney
Copy link
Author

Think I found it... issue with Sierra testing the workaround now. ref:facebook/react-native#9309

@iSamuelBarney
Copy link
Author

iSamuelBarney commented Nov 14, 2016

FYI, definitely was an issue with watching files or some limit that applies to Sierra using react-native I actually didn't use the workaround above although I might at some point. The fix for me was:

installing brew, brew install watchman

I guess watchman does a good job at handling watching that many files in Sierra so the error is gone now and it works.. hmm. Thanks so much for the help @bartonhammond looking forward to using this project on our next release in the app store so happy to get it working.

@bartonhammond
Copy link
Owner

So xcode 8 requires update of osx?

On Nov 13, 2016 6:48 PM, "iSamuelBarney" notifications@github.com wrote:

Think I found it... issue with Sierra testing the workaround now. ref:
facebook/react-native#9309
facebook/react-native#9309


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#162 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABORPPpbXDLMrWfgJlcIU1BEeqiqdiO4ks5q96_LgaJpZM4KwmvA
.

@iSamuelBarney
Copy link
Author

Xcode 8+ requires brew watchman or facebook/react-native#9309 workaround to run react-native run-ios is the take away from this

@riccitensor
Copy link

Having the same, but facebook/react-native#9309 helps.

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

3 participants