Rather than alchemy, methodical troubleshooting
I recently encountered a pesky problem while trying to build a React Native project under Apple’s Xcode. The build would fail with an error reporting:
EMFILE: too many open files, watch. Frustratingly, all available advice on the web pointed to different (often inexplicable) directions, none of which worked. After tormenting myself with these, I decided to troubleshoot the problem methodically, which allowed me to pinpoint it and solve it with an uncommon and noteworthy application of the git bisect command. Here’s the story.