Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 7 Source Control commit fails

Tags:

svn

xcode7

I am attempting to commit my XCode project to an Server based SVN. I have it configured, open the Source Control window, and click on the 'Commit' button. It chunks for a bit, then gives me the the error: The working copy "xxx" failed to commit files. Couldn't communicate with a helper application.

What is the helper application???

I've seen similar posts for GIT, but they don't seem to be relevant (or at least not enough info for me) to deal with SVN.

like image 882
Steve Reed Sr Avatar asked Mar 14 '23 15:03

Steve Reed Sr


2 Answers

There appears to be a bug in Xcode 7 that you may or may not encounter: when creating a new project with a Git repository, Xcode 7 may tall you that it “couldn’t communicate with a helper application”. The same bug may tell you that it “couldn’t commit files”.

This happened to me after upgrading from Xcode 6.x with which I’ve never had this problem.

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. Xcode even offers to access your Mac contacts upon first launch.

To fix it, all we need to do is launch our trusty Terminal app (the command line tool) and tell Xcode who we are, and those errors will be a thing of the past. The good news is that it only has to happen once. Here’s how to do 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"
like image 153
Kate Geld Avatar answered Apr 25 '23 09:04

Kate Geld


I encountered the same issue today. And I open the Terminal:

cd [project path]   
svn commit -m "your log information"

then you will see the Specific causes of the error. Then I deal with the problem according to the error. So it is best practice to add and remove files via Xcode in order to correctly update the svn status (rather than Finder).

In case of a commit error, go to the command-line and use svn status to get a hint what's wrong and fix it from the command-line.

like image 44
andy0570 Avatar answered Apr 25 '23 07:04

andy0570