问题描述
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 的愿望,要么这是一个错误,或者两者兼而有之.
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"Xcode 4 项目导航器中的图标是什么意思,当我创建一个新项目时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!