Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

Did you just upgrade to MAC OS Sierra, and your dev tools stopped working?

Here, is the solution :

sudo xcodebuild -license
  • Scroll till you see the fol­low­ing message

By typ­ing ‘agree’ you are agree­ing to the terms of the soft­ware license agree­ments. Type ‘print’ to print them or any­thing else to can­cel, [agree, print, cancel]

  • Type agree and press enter.

You may also like...