输入git命令时提示:
Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.
按照提示执行“sudo xcodebuild -license”,可能会报错“sudo: xcodebulid: command not found”,此时,打开Xcode,发现有安装提示,点击Agree,输入密码等待安装完成即可。