Agreeing to the Xcode/iOS license...

Posted on in Programming

cover image for article

Sometimes this pops up when you least expect it:

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

This morning, I went to refresh one of my git repo's for work, and make spit that out. What the heck happened last night? Anyway, the fix is easy:

Ullr:anchor scott$ sudo xcodebuild -license
Password:


You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

After hitting the space bar a bunch of times, just agree and you're back to work.

Slaptijack's Koding Kraken