'....failed to commit files' Couldn't communicate with a helper application.

如題,某天在Xcode commit files遇到此狀況,解決方式如下

●先確認你的git name & email是否跑掉(空值)
Show you the global settings for user.name and user.email (and other things)
git config --global -l
參考網址 https://forums.developer.apple.com/thread/18560

●如果真的跑掉,再設定回去吧
1.更改git電子郵件
指令    xcrun git config --global user.email xxxx
範例    xcrun git config --global user.email karen_chang@somedomain.com
2.更改git用戶名
指令    xcrun git config --global user.name xxxx
範例   xcrun git config --global user.name Karen_Chang

1 則留言:

piggy 提到...

這篇文章也是在講一樣的事情
https://medium.com/%E5%BD%BC%E5%BE%97%E6%BD%98%E7%9A%84-swift-ios-app-%E9%96%8B%E7%99%BC%E5%95%8F%E9%A1%8C%E8%A7%A3%E7%AD%94%E9%9B%86/xcode-%E7%9A%84-failed-to-commit-files-%E9%8C%AF%E8%AA%A4-12fa32fef3b0