升级 xcode后,webstorm git报错

165 阅读1分钟

昨天升级xcode,完了今天打开前端工程,拉代码,提示:

You have not agreed to the Xcode license agreements.  Please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode and Apple SDKs license.

按照提示, sudo xcodebuild -license 敲下去,后面输入 agree,回车,完事儿再看。。 控制台敲git --version能显示版本。但是IDE继续报错:

更新更改时出错: 无法运行 Git: 
You have not agreed to the Xcode license agreements. Please run 'sudo xcodebuild -license' from within a Terminal window to review and agree to the Xcode and Apple SDKs license.

网上搜搜,说需要启动一下xcode。按照要求打开xcode启动,点点点安装一波,再重启webstorm,还是同样问题。。。

这个时候想了想,流程都对,但是ide打开就报错。git在命令行里有能用,那么~~ 重启大发走一波。

重启之后问题搞定。