bartonhammond / snowflake

:snowflake: A React-Native Android iOS Starter App/ BoilerPlate / Example with Redux, RN Router, & Jest with the Snowflake Hapi Server running locally or on RedHat OpenShift for the backend, or a Parse Server running locally or remotely on Heroku
http://bartonhammond.github.io/snowflake/snowflake.js.html
MIT License
4.59k stars 613 forks source link

react-native run-ios fails on mac #162

Closed iSamuelBarney closed 7 years ago

iSamuelBarney commented 7 years ago

[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 commented 7 years ago

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 https://github.com/bartonhammond/snowflake/issues/162, or mute the thread https://github.com/notifications/unsubscribe-auth/ABORPCAjAGSuFqa6o0cUJOzO4oentFX2ks5q9pElgaJpZM4KwmvA .

iSamuelBarney commented 7 years ago

xcode version: 8.1

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

bartonhammond commented 7 years ago

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 https://github.com/bartonhammond/snowflake/issues/162#issuecomment-260223198, or mute the thread https://github.com/notifications/unsubscribe-auth/ABORPFbV13hsNsm5binPxBp65eQeDkC6ks5q96RcgaJpZM4KwmvA .

iSamuelBarney commented 7 years ago

I'm looking @ https://github.com/facebook/react-native/issues/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 commented 7 years ago

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 https://github.com/facebook/react-native/issues/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 https://github.com/bartonhammond/snowflake/issues/162#issuecomment-260223981, or mute the thread https://github.com/notifications/unsubscribe-auth/ABORPDqjjKlsv59Om7DbKTIoalWUPuqvks5q96fTgaJpZM4KwmvA .

iSamuelBarney commented 7 years ago

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

iSamuelBarney commented 7 years ago

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 commented 7 years ago

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 https://github.com/facebook/react-native/issues/9309

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bartonhammond/snowflake/issues/162#issuecomment-260226036, or mute the thread https://github.com/notifications/unsubscribe-auth/ABORPPpbXDLMrWfgJlcIU1BEeqiqdiO4ks5q96_LgaJpZM4KwmvA .

iSamuelBarney commented 7 years ago

Xcode 8+ requires brew watchman or https://github.com/facebook/react-native/issues/9309 workaround to run react-native run-ios is the take away from this

riccitensor commented 7 years ago

Having the same, but https://github.com/facebook/react-native/issues/9309 helps.