What does the question mark mean in Xcode Project Navigator?

In the project navigator in Xcode, I'm not sure what is it? trying to tell me next to the file name.


Screen shot

I am sure that it is not a coincidence that this is the same file that I dragged from the project root directory to the Classes folder (because there was a .mm file there, and I wanted them to be together). The project still compiles just fine, however my code sense has broken recently, and I wonder if this could be part of the problem.

Thank!

+69
xcode
Dec 15 '11 at 18:57
source share
6 answers

This is a file that is not tracked by the source code.

+90
Dec 15 '11 at 18:58
source share

These characters refer to a source control.




  • ? - unverified
  • M - changed
  • A - added
  • A + - Moved / Renamed
  • U - newer version of the source control file



More links here

+50
May 13 '14 at 9:39
source share

You can add to the original control by selecting unnecessary files enter image description here

+9
Jan 21 '16 at 18:47
source share

These are unlocked files, if you are using GIT, you need to right-click Source Control> Commit Manual Selected File. That should pick up the "?" on the new version of Xcode 6.3.2 today

+3
May 22 '15 at 9:02
source share

Along with all the other answers. This should not happen by default unless you change the settings in Xcode.

From the Xcode settings โ†’ Source Control โ†’ make sure that โ€œAdd and delete files automaticallyโ€ is selected

enter image description here

0
Aug 16 '16 at 18:13
source share

I unexpectedly received one of my Unversioned (with a mark?), But it was an old file.

It was a .m file. Before the problem arose, I made a copy of it to create a new similar class. I renamed the class and added a new file in Xcode.

The problem (with the old file turned into Unversioned) was not renamed to the comment line at the beginning:

 // // MyFirstClass.m 

When I renamed it, the problem with the Unversioned file was resolved.

 // // MySecondClass.m 

Hope this helps someone.

PS In addition, you may need to delete and copy these files.

0
Nov 04 '16 at 23:44
source share



All Articles