xcode提交缺少的文件或目录 [英] xcode commit missing file or directory

查看:65
本文介绍了xcode提交缺少的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定会发生什么,但是当我尝试在Xcode中提交更改时,我得到了

I'm not sure what happen but when I try to commit my changes in Xcode I get an

致命:无法切换到'/Users/charlesbutler/xCode/MA Mobile/MA MobileTests':没有此类文件或目录

fatal: Could not switch to '/Users/charlesbutler/xCode/MA Mobile/MA MobileTests': No such file or directory

我有一堆这样的文件.

有什么我可以做的,以将其从提交中删除.他们很多被删除了(可能是我在项目文件夹中手动删除了)

Is there anything I can do to remove them from being committed. A lot of them were deleted (probably manually in the project folder by me)

推荐答案

这只是发生在我身上.我已经从项目文件夹中删除了一个包含内容的文件夹. Xcode处理得不好.

This just happened to me. I had deleted a folder with contents from the project folder. Xcode didn't handle that well.

解决该问题的方法是重新创建一个具有相同名称的空文件夹.无需重新创建其内容.

What worked to fix it was to recreate an empty folder with the same name. No need to recreate its contents.

在您的情况下,我认为您只需要在与旧文件夹相同的位置创建一个新的空"MA Mobile"文件夹即可.然后提交.它对我有用.

In your case I think you just need to create a new empty "MA Mobile" folder in the same location the old one was. Then commit. It worked for me.

第一次提交后,我删除了新文件夹,然后再次提交.似乎Xcode缺少处理删除包含内容的整个文件夹的逻辑.

After the first commit I deleted the new folder, then committed again. It seems that Xcode is missing the logic to handle the deletion of a whole folder with contents.

这篇关于xcode提交缺少的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆