xcode 工作副本“<项目名称>”未能提交文件 - 无法与辅助应用程序通信

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32649277/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:51:04  来源:igfitidea点击:

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

xcodegitcommitxcode7

提问by DevC

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

我刚刚更新到 Xcode 7 通用版本,我尝试提交文件。然而,它失败了,我收到以下消息;

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”

我见过这个问题,但在 OP 问题中的次要回答不同: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'

它正在寻找的“帮助应用程序”是什么,解决方案是什么?迁移到 Xcode 7 和 iOS9 变得令人头疼:( 我通过转到“源代码管理”->“提交”来提交我的文件

回答by sleepwalkerfx

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.

事实证明,“辅助应用程序”实际上是 Git。出于某种原因,Xcode 7 渴望将您(提交者)与姓名和电子邮件地址相关联。

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"

回答by Pat_Morita

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 命令添加一次更改。使用终端并切换到您的工作目录(包含 /.git 文件夹)并执行:

git commit -a -m "Commit title here"

After that commit via Xcode should work again.

之后通过 Xcode 提交应该再次工作。

回答by Alfi

I had the same problem.

我有同样的问题。

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

这解决了我的问题:退出 Xcode(使用 CMD+Q)并再次运行它。

回答by MickaelT

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).

上述解决方案对我不起作用。我在 Xcode 8 (8C1002) 上运行,并且我有将近 4500 个文件要一次提交(将库的源添加到我的项目中)。

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.

我可以使它工作(没有错误消息)的唯一方法是多次提交较少数量的文件,而不是一次提交所有文件。

回答by Kenneth Ervin Young

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.

当我添加新的图像资产时,这会发生在我身上。“修复”是在执行 Git 提交之前转到“文件”>“保存”。然后提交工作正常。

回答by Papon Smc

first you check in command line follow this picture .If git is clean (add . + commit done)

首先你在命令行中按照这张图片签入。如果 git 是干净的(添加 . + 提交完成)

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

also have problem same you ForceQuit Xcode and open again

也有同样的问题,你 ForceQuit Xcode 并再次打开