“M”是什么?和“A”和“A”。 Xcode 4项目导航器中的图标是指我创建新项目的时候? [英] What do the "M" and "A" icons in the Project Navigator of Xcode 4 mean when I create a new project?

查看:130
本文介绍了“M”是什么?和“A”和“A”。 Xcode 4项目导航器中的图标是指我创建新项目的时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 4在项目导航器中显示我文件旁边的灰色M和A图标。我相信它们与源代码控制有关。

Xcode 4 is showing me grey "M" and "A" icons next to my files in the project navigator. I believe they're related to source control.

重点在于:我在Xcode 4中打开和编辑的所有旧Xcode 3项目都没有显示这些图标!我在Xcode 4中创建的新项目也不受源代码控制。

The point is this: All my old Xcode 3 projects opened and edited in Xcode 4 don't show these icons! My new project which I created in Xcode 4 isn't under source control either.

当我创建项目时,我取消选中Git选项。但是当点击文件时,Xcode仍然在检查器中显示源控件信息。最初由项目模板创建的所有文件都标记为已提交,因为我自己添加的所有文件都不是。所以要么Xcode忽略了我不希望使用Git或者它是一个bug,或者两者兼而有之。

When I created the project I unchecked the "Git" option. But Xcode still shows me a "Source Control" info in the inspector when clicking on a file. All files initially created by the project template are marked as "committed" where as all files I add myself are not. So either Xcode ignored my wish not to use Git or it's a bug, or both.

更新:有些人建议删除.git文件夹。因为它以点开头,所以它可能是一个隐藏的文件夹,因此我在终端中使用这个技巧在Finder中显示隐藏文件:

Update: Some recommend deleting the .git folder. Since it starts with a dot it's probably a hidden folder, and therefore I made hidden files visible in Finder using this trick in Terminal:

defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

然而,似乎我的项目文件夹中没有.Git文件夹(选中所有包含文件夹)。但是,即使Git复选框被禁用,Xcode也会将我的新项目置于源代码管理之下。

However, it appears that there is NO .Git folder in my project folder (checked all containing folders). But still, Xcode is putting my new projects under source control even though the Git checkbox is disabled.

如果我不想使用它,我怎么能摆脱它源控制呢?

How can I get rid of it if I don't want to use source control yet?

推荐答案

正如其他人所说,它们与源控制有关。如果你确定没有.git或.svn目录出现在你的项目中并且它们仍然出现,那么它只是一个Xcode错误。忽略它或向Apple提交错误。

As others have said, they're related to source control. If you've made sure that no .git or .svn directories appear in your project and they still show up, then it's just an Xcode bug. Ignore it or file a bug with Apple.

在旁注中,你应该使用源代码控制。

On a side note, you SHOULD be using source control.

这篇关于“M”是什么?和“A”和“A”。 Xcode 4项目导航器中的图标是指我创建新项目的时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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