I admit I'm cheap: upgrade xcode

After upgrading xcode, run git clone in the terminal and the message
"Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo" appears.

Solution:

sudo xcodebuild -license
has been pressing the space, and at the end, when the prompt agree, print, cancel and enter
agree

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326943861&siteId=291194637
I
"I"
I: