Seemingly out of absolutely nowhere and for no apparent reason I’m getting this error in the Visual Studio Code output when trying to debug run iOS:
Error: Error while executing command '/Users/blaa/node_modules/.bin/react-native run-ios --scheme Play-Dev --no-packager --verbose': Error while executing command '/Users/blaa/blaa/node_modules/.bin/react-native run-ios --scheme Play-Dev --no-packager --verbose' (error code 101)
This worked fine yesterday. It’s working if I switch to my develop branch, just not when I’m on my feature branch. Another developer can currently successfully VSC debug both branches.
Things I’ve tried:
- Nuked yarnopods 10-20X
- Nuked all yarnopod lock files 1X
- Deleted Derived Data 2X
- Mac Restart
- VSC Restart 5-10X
- Switch the VSC terminal to bash not zsh
- Nuked sim 3X
- $ yarn cache clean
- $ echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p - that old chestnut
- Apologized to the old Gods and the new for anything bad I ever said about Xcode
- Branch switch back to develop - nuked yarnopods - VSC debugging IS working
- Branch switch back to feature branch - nuked yarnopods - VSC debugging NOT WORKING with mystery error 0
Debugging using Xcode and React Native Debugger is working, although breakpoints stopped working a few months ago in RNDB, so that’s pretty much useless.