Xcode 9 commit: Couldn't communicate with helper application

Pat_Morita picture Pat_Morita · Oct 6, 2017 · Viewed 17.6k times · Source

I've recently updated to OSX Sierra (from El Capitan) and to Xcode 9. I removed all compatibility issues (like autolayout issues) and would like to commit to my local gitrep now.

the following error appears:

enter image description here

I thought it might be the same bug appeared in XCode 7 mentioned here: Xcode and Git Source Control : “The working copy XXXXX failed to commit files”

enter image description here

But it wasn't. I tried the solution mentioned above. Username and EMail are properly set. I did save everything, tried restarting the machine and a few other minor things. Nothing worked - i can't commit.

Any help appreciated.

EDIT

I got it to work by commiting manually and adding changes before with

git commit -a -m "Fixes"

I will keep an eye on that if it happens again once i made more changes and report here if so.

Answer

Pat_Morita picture Pat_Morita · Oct 26, 2017

The solution is to add changes once with a git command. Use terminal and navigate to Xcode project folder. If you are in the right folder, this command:

ls -al

will list a .git folder. Then you know you're at the right place. Then execute

git commit -a -m "Commit title here"

After that commit via Xcode should work again.