What Does Question Mark Mean in Xcode Project Navigator?

后端 未结 7 1392
栀梦
栀梦 2020-12-13 05:15

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


\"S

相关标签:
7条回答
  • 2020-12-13 05:47

    Following steps resolved issue for me:

    • Select all your files with "?"
    • Right click and select Source Control
    • Select Add Selected Files
    • Select Commit Selected Files...
    • On the popup dialog just drop some comment (no matter what=)

    Screen

    0 讨论(0)
  • 2020-12-13 05:50

    Those are uncommitted files if your using GIT, you need to right click Source Control>Commit Selected File manually. It should take away the "?" on the new version of Xcode 6.3.2 as of today

    0 讨论(0)
  • 2020-12-13 05:59

    You can add to source control by selecting the untracked files

    0 讨论(0)
  • 2020-12-13 06:03

    Those characters refer to the source control.


    • ? - Unversioned
    • M - Modified
    • A - Added
    • A+ - Moved / renamed
    • U - Newer version of a file on source control

    More reference here

    0 讨论(0)
  • 2020-12-13 06:06

    Along with all other answers. This shouldn't happen by default UNLESS you have changed the settings in Xcode.

    From Xcode Preferences >> Source Control >> make sure 'Add and remove files automatically' is selected

    0 讨论(0)
  • 2020-12-13 06:07

    I suddenly get one my file Unversioned (with ? mark), but it was old file.

    It was .m file. Before problem occurred, I created copy of it, for making new similar class. I renamed a class and add new file to XCode.

    Problem (with old file become Unversioned) was in not renamed comment string at beginning:

    //
    //  MyFirstClass.m
    

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

    //
    //  MySecondClass.m
    

    Hope it'll helpful somebody.

    P.S. Additionally maybe needed to remove and copy back this files.

    0 讨论(0)
提交回复
热议问题