Missing file warnings showing up after upgrade to Xcode 4

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

    It's very Simple,

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

    and Do not forget to do cmd+shift+k

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

    In XCode 4.2.+ (possibly in 4+) you can avoid manual work and command line :

    1. Select project Project Navigator (Command - 1)
    2. Choose File - Source Control - Commit menu
    3. In the left pane, on top of it you have three icons, select the middle one - File view
    4. You will see the list of all missing files
    5. Select all of them and right-click - Discard changes. This will restore all deleted files from the SVN server and place them in your local SVN folder
    6. Drag and drop those files into the XCode project (Choose Sort-Date Modified in Finder to easily find them)
    7. Delete those files properly through XCode (select files and choose right-click Delete)
    8. Commit the project

    And that's it :)

    All those nasty warnings are gone!

    Additionally for Xcode 6+: After selecting the file view 'middle icon' - you can click the checkbox to the left and this will mark them as deleted for SVN when you next commit!

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

    Dont delete the file directly in your .xcode folder. Delete files from xcode project navigator. (Right click on that file and choose move to trash).

    Now, To clear this issue add same files in same location. And delete from the project navigator.

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

    In my case

    1. I simply open SvnX.
    2. All missing Files are marked in red. Select and delete them.
    3. Then all Xcode Warnings were gone.
    0 讨论(0)
  • 2020-11-30 17:54

    I solved it the following way:

    1. Check the path to the missing file.
    2. Create missing files at appropriate locations within your project directory
    3. Add them to your project using "Add Files to "project"" and create references only (do not copy the files)
    4. The warnings should disappear at this point.
    5. From within Xcode delete the files making sure you click "Delete" instead of the default "Delete Reference Only"
    6. You're done.
    0 讨论(0)
  • 2020-11-30 17:56

    The answer by Alex fixed my issue of missing files.

    I had one other problem ( though it is not related to missing files, i feel this would be the better topic)

    1. I needed to copy a set of images into my project.
    2. I simply created a group (though i know that group doesnt map to the physical folder) and dragged the images into the group (selected "Copy to.." option).
    3. SVN status showed all of them in "A".
    4. Now when I went into actual file system, I found that all images where copied to the root folder of my project. As it didnt look well, I created a physical folder inside the images folder in my project and copied all the added images there.
    5. SVN then showed all files in red.
    6. I deleted the references of all the red files.
    7. With the "Add File" option, I then added the images from the newly created folder.
    8. Now SVN fails to show status of the files as "A", and no way I can check them in.
    9. Tried out many steps like trashing them adding again from a different folder etc, but there wasnt any luck.

    I fixed this by going directly into the repository, create a new directory under images so that the physical folder is now in the SVN server

    I then took an update of the source, and got the newly created directory inside my working copy (though it is not added to the project).

    I then copied the images to that directory and added them to the project using "Add File" option, which brought me back the "A" status and I was able to check in the files.

    Just wanted to share this.....because it took a lot of time from me.

    -anoop

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