1、报错:Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
2、解决办法:
第一步: 输入下面的命令
<code class="hljs ruby has-numbering" style="display: block; padding: 0px; background-color: transparent; color: inherit; box-sizing: border-box; font-family: 'Source Code Pro', monospace; white-space: pre; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px; word-wrap: normal;"><span style="font-size:18px;"><strong>bixiaopeng<span class="hljs-variable" style="color: rgb(102, 0, 102); box-sizing: border-box;">@bixiaopengtekiMacBook</span>-<span class="hljs-constant" style="box-sizing: border-box;">Pro</span> <span class="hljs-constant" style="box-sizing: border-box;">SecondApp</span><span class="hljs-variable" style="color: rgb(102, 0, 102); box-sizing: border-box;">$ </span>sudo xcodebuild -license
<span class="hljs-constant" style="box-sizing: border-box;">Password</span><span class="hljs-symbol" style="color: rgb(0, 102, 102); box-sizing: border-box;">:</span></strong></span></code><ul class="pre-numbering" style="box-sizing: border-box; position: absolute; width: 50px; background-color: rgb(238,