Missing file warnings showing up after upgrade to Xcode 4

后端 未结 21 1851
忘了有多久
忘了有多久 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:58

    These solutions are way too difficult. The problem is that you have removed the project from filesystem but SVN still thinks they are there. Detaching project from SVN will work, the same for removing .svn folders BUT that is going to destroy your repository!

    It is much easier to open console, browse to your folder ("cd /pathToYourFolder") and type the following command:

    svn delete nameOfMissingFile

    If the name of your missing file includes the @ character (eg: retina-specific artwork), ensure the file name terminates with the @ symbol:

    svn delete nameOfMissingFile@2x.png@

    For GIT repositories:

    git rm nameOfMissingFile

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

    I am using svn and manage to solve this problem by

    svn delete pathToMissingFile

    which is going to remove the local svn copy of the missing file as well as the copy in the remote repository.

    or

    svn revert pathToMissingFile

    which is going to discard changes on the missing file which mean putting the missing file back to where it was.

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

    It has something to do with .svn hidden folders in your project.

    I solved this issue by detaching the project from svn.

    a. Open terminal and type the following commands:

    defaults write com.apple.finder AppleShowAllFiles TRUE


    killall Finder

    This will allow you to view the .svn folders inside your project

    b. Delete every .svn folder in your project folders/subfolders

    c. Re-enable hidden files:

    defaults write com.apple.finder AppleShowAllFiles FALSE

    killall Finder

    d. Now your project is detached from svn and you no longer get build issues.

    e. Re-add your project to svn or whatever.

    I'm a beginner myself and this was my way of dealing with that issue, so I'm not sure this is the best way to go. Anyway, the problem was solved.

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