• 0

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 following message
By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel]
  • Type agree and press enter.