xCode: gulp: command not found
If you're using gulp or similar build tools to build your project you might run into this issue.
/Users/username/Library/Developer/Xcode/DerivedData/project/filename.sh: line 4: gulp: command not found
Here, xCode can not find gulp because it uses the system version of node.js. Hence, gulp has to be installed inside system node.js.Solution:
- install node.js
- install node version manager
$ nvm ls, you should see
systemin the list
$ nvm use system
$ npm install -g gulp
- Now, gulp is available globally inside the
systemversion. You should be good to go now.