What do the “M” and “A” icons in the Project Navig

2019-01-15 06:16发布

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.

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.

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.

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

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?

10条回答
ゆ 、 Hurt°
2楼-- · 2019-01-15 06:18

The "M" is for "modified" and the "A" is for added. These values reflect the version control state of the files

查看更多
何必那么认真
3楼-- · 2019-01-15 06:21

The icons are always there in XCode 4.5, version control or not

查看更多
可以哭但决不认输i
4楼-- · 2019-01-15 06:22

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.

查看更多
Lonely孤独者°
5楼-- · 2019-01-15 06:25

Tags such as "M" or "A" next to files in Xcode indicates that your project in under SVN/GIT repository. "M" indicates content of file Modified whereas "A" for file Added.

It is recommended to keep your project under SVN/GIT provision.

查看更多
我欲成王,谁敢阻挡
6楼-- · 2019-01-15 06:29

I'm guessing you opted to create a local git repository when you created the project. They are indeed related to source control and they mean "Modified" and "Added". The reason they're not showing for your old projects will be because you're not using source control with them, but like I say, I reckon you opted to create a local git repository when you created the projects.

查看更多
祖国的老花朵
7楼-- · 2019-01-15 06:31

enter image description here

This is taken from Sam's Book. I am having trouble finding information in Xcode Documentation.

查看更多
登录 后发表回答