Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
- Open the terminal, then type in “ sudo xcodebuild -license”
Type in “ enter”
Type in “space” for more to read, or “q” for quit
Finally, type in “agree” and enter.