在没有安装Xcode的状况下, 使用了 webstorm 的git,提示git
安装xcode,安装完成后,并无打开xcode,而是再次使用git,发现web
提示 xcode
输入如下命令行:webstorm
sudo xcodebuild -licenseui
Agreeing to the Xcode/iOS license requires admin privileges, please re-run the command。spa
意思就是说,虽然安装了Xcode,可是并无赞成使用协议之类的,须要赞成协议后,再次运行git相关命令。命令行
在命令行中输入 sudo xcodebuild -license , 按照提示,输入agree。code
而后再次在webstorm中运行 git 仍是一样错误。 最后重启mac,OK!orm
终于正常了。it
不过一事不明, IDEA 在不安装 xcode就能够使用git,为何webstorm不能够?