解决办法: xcode->preferences->source control->勾选enable source control 转载于:https://www.cnblogs.com/iicecream/p/7238705.html