I was not able to compile gems. The reason was XCode needed me to agree with its new license.

Solution:

  • Open XCode.
  • Agree with the new license.
  • bundle install