The working copy '<Project Name>' failed to commit files - Couldnt communicate with helper application

14,201

Solution 1

Turns out the “helper application” is in fact Git. For some reason Xcode 7 is eager to associate you (the committer) with a name and an email address.

To fix it, on the command line, type the following:

xcrun git config --global user.email [email protected]
xcrun git config --global user.name "Your Name Here"

Solution 2

If the above mentioned solutions don't work, try this one:

Add changes once with a git command. Use terminal and change to your working directory (that contains a /.git folder) and execute:

git commit -a -m "Commit title here"

After that commit via Xcode should work again.

Solution 3

I had the same problem.

This fixed my problem: Quit Xcode(using CMD+Q) & run it again.

Solution 4

The above solution did not work for me. I am running on Xcode 8 (8C1002) and I have close to 4500 files to commit at once (adding the sources of a library to my project).

The only way I can make it working (without the error message) is by committing smaller number of files multiple times instead of all at once.

Solution 5

This happens to me when I add new image assets. The "fix" is to go to File > Save BEFORE you do a Git Commit. Then the Commit works Fine.

Share:
14,201
DevC
Author by

DevC

iOS Developer based in Ireland ObjC and Swift

Updated on June 17, 2022

Comments

  • DevC
    DevC about 2 years

    I've just updated to Xcode 7 general release and ive tried committing files. Its failing however, and im getting the following message;

    enter image description here

    Ive seen this question but the secondary response is different in the OP question: Xcode and Git Source Control : “The working copy XXXXX failed to commit files”

    Whats the 'helper application' that it is looking for and whats the solution? Migrating to Xcode 7 and iOS9 is becoming a headache :( I commit my files by going to 'Source Control' -> 'Commit'

  • John
    John over 6 years
    Thanks this is the solution for me
  • Micah Montoya
    Micah Montoya over 6 years
    I recently ran into this and found that if I restarted xcode then I was able to do the commits just fine.
  • Stefan
    Stefan over 6 years
    I had the same problem with Xcode 9. After having read your advice, I simply went to Preferences → Source Control → Git and replaced the "Author Name" and "Author Email" fields with the same content they already had. This apparently had the same effect as the shell commands.
  • TenaciousJay
    TenaciousJay about 6 years
    I had around 3800 files to commit and had similar problems. Committing in 2 or 3 chunks seemed to work.
  • Womble
    Womble almost 4 years
    Thank you! You are the wind beneath my wings. Other solutions didn't work.
  • Joakim Sjöstedt
    Joakim Sjöstedt over 3 years
    One should be careful about using --global though as this sets the info for all projects, and that might not be what you want. To set it to a specific project, locate your project inte the terminal, then simply omit the global command: git config user.name "myName"
  • Leon Jakonda
    Leon Jakonda almost 3 years
    worked for me Xcode Version 12.5.1 (12E507)
  • Leon Jakonda
    Leon Jakonda over 2 years
    a good solution, fixes this problem
  • Appy Sharma
    Appy Sharma about 2 years
    I did what micah wrote about just restarting the xcode and it worked fine for me as well and i was able to do a commit and push. thanks!