-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Packager fails on macOS 10.12 Sierra #9309
Comments
Just got this as well, also on sierra |
me as well, also on sierra |
Credit to @passwd for figuring this out We were able to get it to work by increasing the max file limit and moving to watchman v4.6.0 here are the steps we followed: 1. increase max file limt
2. upgrade to watchman 4.6
|
@mc-lean you're the best!!! |
@mc-lean Nice! :) Are there any plans to update watchman in the RN-repo so RN works out-of-the-box again? |
@goldenice I would guess that it is. Sierra is due out in September so I would think they would plan to support it out of the box soon |
@mc-lean Thanks 👍 |
Great, it works. 👍 |
thanks, you made my day :) |
System doesn't report the updated value when i run |
@jalmaas value updates only after reboot. Worked for me on GM. But indeed, just updating to |
it didn't update after reboot here |
React Native works fine with relatively up-to-date software. These are the settings that are working for me:
|
unfortunately it does not work for me
|
Isn't working for me 👎 Versions:
Log:
|
This worked perfectly for me. Thanks! |
Upgrading watchman solved the issue for us. |
No luck :( |
Upgrading watchman worked, brew didn't cooperate but heh.. $ git clone https://github.com/facebook/watchman.git
$ cd watchman
$ git checkout v4.7.0 # the latest stable release
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install |
I was checking watchman issues and found out this one: facebook/watchman#358 When running
|
FINALLY!!! I ran the |
got the same result on Sierra |
I get the following error when trying to compile the Watchman:
|
I was able to resolve the compilation issue after installing automate: |
The project works in Simulator after following the steps from @mc-lean. |
i ran brew install automake but still can't compile watchman |
@sammosampson What errors are you getting? |
After updating to OSX Sierra and XCode 8.1, I cannot compile any of the React-Native projects. I get the error that the OP had. At this point, I have not been able to resolve it. You may consider re-opening the issue. Here is what it looks like when I try to compile the Snowflake starter project:
Similar errors show up when compiling some tutorials I had laying around (they worked under Sierra and XCode 7.3.1) |
@artforlife I'm having exact same issue although not related specifically to react-native, I'm in the process of updating to xcode 8.1 as after update to macOS sierra I was unable to run tests which depend on fs, any help appreciated... EDIT: please look at this, installing watchman fixed this issue for me |
@bondarewicz Thanks for the idea. I have just tried downgrading to Xcode 7.3.1 and the problem still persists. This leads me to think that it lies not with Xcode but elsewhere. Perhaps the Development Tools is the problem. My watchman version is already 4.7.0 ... |
@artforlife have you tried reinstall ? We need to debug this issue as many had the same problem but there is no definite answer yet... |
@bondarewicz I have tried reinstalling the watchman, but that didn't affect anything. |
I have the following configurations: OSX: Sierra I used to following steps to fix the issue.
This fixed it. To summarize, it seems to have been a permissions problem on a Watchman directory. |
Can confirm that this issue was related to tmux. After getting the error
from running react-native commands, I installed watchman, but continued to get the issue. Running react-native commands outside of tmux now works. I do not have jest installed. None of the other fixes mentioned here had any effect. |
Solved for me with updating Xcode and installing watchman with brew (which is not possible with 7.x Xcode) edit |
I followed most of the steps above including upgrading watchman, and increasing the max file limit, but what solved it for me was verifying permissions by running |
updating watchman solved me the issue when i updated macOS Sierra ERROR Error watching file for changes: EMFILE |
Note that this is also what happens if you don't have Watchman installed at all. |
I have upgraded to the macOS Sierra beta yesterday, and the React Native Packager seems to fail. I've tried to reinstall the dependencies, but no use.
The output of the packager is this:
The only reference to that specific error I have found is this old issue on the Node 0.10 repo's. I have tried the 'fix' in that topic, namely increasing the open file references limit. That didn't work.
The issue occurs on both Node 4.4.7 and 6.3.1, on macOS Sierra 10.12 on a MBP 2015 15". Does anyone know what is going on here?
The text was updated successfully, but these errors were encountered: