解決 Xcode 的 failed to commit files 問題

透過 Xcode,我們很輕鬆就能實現基本的 git 版本管理功能,比方從 menu 點選 Source Control > Commit,記錄此時此刻的版本。

正常情況下,commit 是不會有問題的。不過有些人也許運氣不好,老天爺總和他作對,連 commit 都出錯,出現錯誤訊息 The working copy xxx failed to commit files. ,內文 Couldn’t communicate with a helper application, No author information was supplied by the version control system,Please tell me who you are。

解決的方法如下:

方法 1

1 打開 Xcode 的 Preferences 視窗。

2 切換到 Source Control 分頁,在 Git 頁面輸入 Author Name & Author Email。

方法 2

1 打開 Terminal。

2 輸入以下指令

git config --global user.email “you@example.com”

git config --global user.name “Your Name”

一個填你的email,一個填你的名字。

--

--

彼得潘的 iOS App Neverland
彼得潘的 Swift iOS App 開發問題解答集

彼得潘的iOS App程式設計入門,文組生的iOS App程式設計入門講師,彼得潘的 Swift 程式設計入門,App程式設計入門作者,http://apppeterpan.strikingly.com