pmadruga / react-native-clean-project

Automating the clean up of a React Native project
MIT License
1.17k stars 52 forks source link

Error running 'wipe iOS Pods folder': Too many open files in system #35

Closed schumannd closed 2 years ago

schumannd commented 4 years ago

Maybe the script needs to take it slow when the project is big?

Same error occurs in the next step:

Error running 'wipe iOS build artifacts': rm: fts_read: Too many open files in system
pmadruga commented 4 years ago

Hi @schumannd do you still have this problem?

mikehardy commented 4 years ago

I was having lots of problems related to file handles on a couple of macs under my care but not on the others. In the end it turned out I had watchman installed on some (the ones that worked) and was missing it on the ones that did not work. I have a convergence script that does brew install watchman now and everything works.

May not be a fix but perhaps checking for watchman or recommending it on this error might serve as good enough?

Otherwise since those are all combos of rm and getconf I'm not sure how to reduce file handle count during the operation

Harjot1Singh commented 3 years ago

I also have the same issue, but watchman is installed.

pmadruga commented 3 years ago

Seems like this is outside the scope of this lib, since it's not really responsible for that. As @mikehardy mentioned and also mentioned in https://github.com/facebook/create-react-app/issues/4540#issuecomment-393268543 . What I can do is add a Troubleshoot section in the readme, if there's demand for it.