When installing certain gems it complained about xcode files (I only installed command line tools)
-
give it the path to the command line tools
xcode-select --switch /usr/bin
-
replace xcrun with bash script to get rid of "failed to exec real xcrun" error
#!/bin/bash
$@