An error occurred while installing json (1.8.1), and Bundler cannot continue - Rails
<p>An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that <code>gem install json -v '1.8.1'</code> succeeds before bundling.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun</p>

<p>make failed, exit code 1</p>

<p>I know this has already been posted but i have tried bundle update, bundle install and putting the gem file in my gem file and bundle install but nothing works from the other answers.</p>

<p>ideas?</p>