Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

running brew commands is full of 'Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.'

Tags:

macos

homebrew

This affects many other things too but in brew you may see lots of things suggesting: 'Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.'

Brew explicitly recommends you do not run it under sudo.

like image 624
pacifist Avatar asked Oct 22 '14 12:10

pacifist


1 Answers

running brew doctor gave me useful answers to this

Provided software update is closed you may be able to agree to the license by opening Xcode.app, but I couldn't... so instead I ran:

sudo xcodebuild -license

Which if you scroll to the bottom lets you type 'agree' and then you're good to go.

like image 91
pacifist Avatar answered Nov 15 '22 06:11

pacifist