• 0

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.
  • install node.js
  • install node version manager nvm
  • $ nvm ls , you should see system in the list
  • $ nvm use system
  • $ npm install -g gulp
  • Now, gulp is available globally inside the system version. You should be good to go now.