Xcode 9 commit: Couldn't communicate with helper application

瘦欲@ 提交于 2019-11-26 16:32:03

问题


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:

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”

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.


回答1:


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.




回答2:


For me I had to populate Full Name and Email address in Preferences > Source Control > GIT (tab). They were blank.




回答3:


If you cant change the git name in Xcode, you can change username and email using the terminal:

xcrun git config --global user.name 'new_user_name'
xcrun git config --global user.email 'new@email.com'

And restart Xcode.




回答4:


For me, the Preferences> Source Control > Git > Ignored Files had the Watchkit Extension Complications Controller. Removing it from Ignored Files fixed the problem. Xcode 10.1, Watch OS 4.2.




回答5:


the problem that I had was whenever I tried to create source control it show Couldn’t communicate with a helper application. so in Xcode preferences I go to accounts and there I see I was logged out I signed in again and save the project, after closing the project and force quitting Xcode I opened it again and now it works fine for me



来源:https://stackoverflow.com/questions/46607843/xcode-9-commit-couldnt-communicate-with-helper-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!