git Xcode 9 提交:无法与辅助应用程序通信
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46607843/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 9 commit: Couldn't communicate with helper application
提问by Pat_Morita
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.
我最近更新到 OSX Sierra(来自 El Capitan)和 Xcode 9。我删除了所有兼容性问题(如自动布局问题),现在想提交到我的本地 gitrep。
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”
我认为这可能与此处提到的 XCode 7 中出现的错误相同: Xcode 和 Git 源代码控制:“工作副本 XXXXX 无法提交文件”
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.
一旦我进行了更多更改,如果再次发生,我会密切关注,如果是这样,请在此处报告。
回答by Pat_Morita
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:
解决方案是使用 git 命令添加一次更改。使用终端并导航到 Xcode 项目文件夹。如果您在正确的文件夹中,则此命令:
ls -al
will list a .git folder. Then you know you're at the right place. Then execute
将列出一个 .git 文件夹。然后你就知道你来对地方了。然后执行
git commit -a -m "Commit title here"
After that commit via Xcode should work again.
之后通过 Xcode 提交应该再次工作。
回答by Ryan R
For me I had to populate Full Name and Email address in Preferences > Source Control > GIT (tab). They were blank.
对我来说,我必须在首选项 > 源代码管理 > GIT(选项卡)中填充全名和电子邮件地址。他们一片空白。
回答by Vladyslav Panchenko
If you cant change the git name in Xcode, you can change username and email using the terminal:
如果您无法在 Xcode 中更改 git 名称,则可以使用终端更改用户名和电子邮件:
xcrun git config --global user.name 'new_user_name'
xcrun git config --global user.email '[email protected]'
And restart Xcode.
并重新启动Xcode。
回答by Mohammad Yunus
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
我遇到的问题是,每当我尝试创建源代码控制时,它都会显示无法与辅助应用程序通信。所以在 Xcode 首选项中,我转到帐户,在那里我看到我已注销,我再次登录并保存项目,关闭项目并强制退出 Xcode 后,我再次打开它,现在它对我来说很好用
回答by Nelson Capes
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.
对我来说,Preferences> Source Control > Git > Ignored Files 有 Watchkit Extension Complications Controller。从忽略的文件中删除它解决了这个问题。Xcode 10.1,手表操作系统 4.2。