Missing file warnings showing up after upgrade to Xcode 4

后端 未结 21 1849
忘了有多久
忘了有多久 2020-11-30 17:23

I recently upgraded to Xcode 4 (which is a great upgrade) but now I\'m getting some warnings that I did not get before. I have looked through forums and other SO posts but

相关标签:
21条回答
  • 2020-11-30 17:32

    All the above didn't work to solve the same kind of issue I had. Doing some search, I understood that the issue I had was related to SVN conflicts.

    I found out that there were conflicts using the command line:

    svn status
    

    Then all conflicted files had to be resolved

    svn resolved filename1 filename2 ...
    

    Once the conflicts resolved, the warnings were gone from Xcode

    0 讨论(0)
  • 2020-11-30 17:33

    I also had this problem, and as user151215 has described it IS due to .svn folders.

    I had a old .svn folder, not in the project itself but in the projects parent folder.

    the offending .svn folder will have an entries file that contains your missing files. So you can use Teminal and search for a missing file name string, e.g. grep -lir BagController.m yourRootDevDir/*

    simpler than enabling hidden files in finder, just use the terminal. cd to relevant directory, and mv .svn ~/.Trash

    Hope this helps!

    0 讨论(0)
  • 2020-11-30 17:33

    Disabling SVN in Xcode prevents these issues (assuming you're managing your repository with another SVN tool). See this question:

    Can you disable version control integration in Xcode 4?

    Obviously, this might not be practical if there are other Xcode projects you do want to use SVN with.

    0 讨论(0)
  • 2020-11-30 17:35

    In Xcode5 & Xcode6, below steps worked for me

    Xcode -> Preferences -> Source Control -> uncheck Enable Source Control

    then

    Xcode -> Preferences -> Source Control -> check Enable Source Control

    0 讨论(0)
  • 2020-11-30 17:43

    Overview:

    In my case there was an xcode Project called Sample in the following folder path /folder1/folder2.

    There was a .git file inside /folder1/folder2/Sample/ which is expected.

    Root cause:

    There was another .git file in the parent directory (/folder1) which was causing the issue. The folders might have been deleted leaving behind the .git file

    Solution

    rm -rf /folder1/.git

    Clue

    If moving your project to a completely new location fixes the issue where there was no .git file in the parent directories up the hierarchy then it is a clue that the above solution could work.

    0 讨论(0)
  • 2020-11-30 17:46

    Go in to the appropriate directory and run:

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