Fixing Broken `gem install` from Xcode update

Quick tip: upgrading to Xcode 8.0 on a Mac with existing dev tools installed results in compilation failures due to the build tool license. You need to agree to the new license before proceeding, which requires running with admin privileges.

So if you get something like this:
Error installing during `bundle install`

You can fix it by running the following:

$ sudo gcc

Hit ‘space’ repeatedly to get through the license, then type ‘agree’ and hit enter. You’ll get a generic error about no input files and that’s when you know you’re good to go. Re-run bundle or whatever you were doing previously.

 
1
Kudos
 
1
Kudos

Now read this

How to fix `React DevTools encountered an error: RangeError: Invalid array length`

I recently found this rather obscure message in my dev tools console when working on a React + Gatsby based website. It took a bit of digging to figure out where it was coming from since the stack trace was all React internals. Turns out... Continue →