XCode 10.2 git error : Couldn’t communicate with a helper application

Hi,

With the latest XCode 10.2, git support seems to always break after some time, forcing me to close xcode, and open it again to have it work correclty again.

When git access is needed, in my local repository (to compare changes or commit) the following message pops-up:

----

Couldn’t communicate with a helper application.

Try your operation again. If that fails, quit and relaunch the application and try again.

----


I had no problems with git with previous versions of XCode.

Any one else having the problem and any clues on how to workaroud it ?

Answered by Gooogle in 363366022

Good news! Xcode 11 Beta fixes this problem

Thank you.

Unfortunately, still doesn't work for me.


I noticed that the problem report (from which mine is a duplicate of) is now closed.

I'll try to to get some info about that.

So far so good with this approach.. Xcode has remained able to connect with git for 2-3 hours now, which is much better than before. I'll add another reply if the problem crops up again.


**NOPE** Xcode seemed to last a lot longer before getting confused, but lost touch again.

Same issue. In my case, it doesn't seem so much that it fails after some time, but after my computer sleeps and then wakes.

I'm running two machines: a 2013 iMac and a 2016 MacBook Pro. The iMac has the problem, the MacBook Pro does not. I'm going to try creating a new account on the iMac and see if the problem persists there. Theory: there's something left over from multiple upgrades over time that is causing this problem.


I'll also note that turning Git off and then back on in Preferences once or twice, without quitting, seems to temporarily fix the problem.

OK, so when I got back to work this morning, I fully expected this problem to occur, but it didn't. So the trigger is not time. Nor is it the computer falling asleep. It's still just random.


For me, the blank name and address fields in the git preferences are symptoms; not causes. When I see the problem, the fields are blank. If I then restart Xcode, the fields are filled in and the problem is gone.

Same here... really annoying.

Same for me, it's begining to grate, to be honest.


Has anyone found a solution, any feedback from Apple?

Accepted Answer

Good news! Xcode 11 Beta fixes this problem

This seems to be the case, indeed!

Thank you.

I have the same problem. Any workaround for current XCode?! I can't use Xcode 11 Beta 😟

Feels like I have to downgrade to previous version.

Still waiting as well for a viable solution as it is a Beta version of Xcode

Still an issue for me. Very annoying and disruptive.

Worst updates by Apple. Crashed git everytime and need to use external tool or command line.

I am surprised this works for me! Apple should provide more error details...

Hi,
it looks like they also solved the problem in the most recently released version : 10.3 (10G8)

EDIT : ... well no, they didn't.

Add Git Author name and email


Can be configured in next places:


- XCode Preferences -> Source Control -> Git


- Repository Git setup

git config user.name "John Doe" 
git config user.email "john@doe.org"


- Global Git setup:

git config --global user.name "John Doe" 
git config --global user.email "john@doe.org"


Only global setup worked for me

I got the same issue, not only Source Control, but manipulating files, or adding new assets to the project shows the same message: Couldn't communicate with helper application.


Recently I found out that folder permissions was the problem.


If anyone facing the same, simply change user (chown) or change permission (chmod) to the project folder to fix this issue.

I am having similar issue.. On the sumulator, I cannot select a file from Icloud drive. I am logged in and see the list of file from ICloud however, when I get the popup error when I select the file..


xCode Version 11.1 (11A1027)


I have tried all solution given on the above replies but it did not solve the issue. This works on the physical device..


Thanks for your help

I was getting this error consistently on my 13" MBP with 8GB of RAM. When I switched to a 15" MBP with 16GB of RAM I have never seen the problem once.

Version 12.4 (12D4e) +1
XCode 10.2 git error : Couldn’t communicate with a helper application
 
 
Q