Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” a...

Error:

From the error message, it seems that the need to accept the license agreement by an administrator, so try to learn from this perspective google, here at last found a solution:

 

1, open the terminal, enter sudo xcodebuild -license

 

2, the terminal prompts hit the Enter key (enter) open license agreement, did

 

3, the terminal prompts press "space" key to read the license agreement, press "q" without reading

 

4, finally, the terminal will be three options, agree, print, cancel, do not want and can not agree it! Input agree, then enter

Transfer: https: //blog.csdn.net/u010244476/article/details/83190119

Guess you like

Origin www.cnblogs.com/kunmomo/p/11164956.html