Xcode 4: files get stuck outside the project, cannot be deleted

Many of my files in my Xcode project are stuck outside my project, and I cannot delete them. Sometimes this happens when creating new files (perhaps in 50% of cases).

Here is a screenshot of what is happening:

enter image description here

Any ideas?

Thanks.

+4
source share
1 answer

The same problem, it was decided to manually edit the project package:

  • quit xcode
  • right-click on "Philly Shows.xcodeproj" and show its contents.
  • same operation on "project.xcworkspace"
  • open "contents.xcworkspacedata" with a text editor: you will find links to your stuck groups and files, delete what you want to delete, basically your file should look something like this:
  <? xml version = "1.0" encoding = "UTF-8"?>
     <Workspace version = "1.0">
         <FileRef
             location = "self: Philly Shows.xcodeproj">
         </FileRef>
     </Workspace>

Michelle

+9
source

Source: https://habr.com/ru/post/1343271/


All Articles