Xcode wird nicht lassen Sie eine Ressource-Datei

Meine Frage heute geht es darum, wie Xcode beschäftigt sich mit Ressourcen-Dateien in das app-bundle, welches es schafft. Ich weiß, dass es vielleicht trivial sein, aber ich kann nicht herausfinden, einen einfachen Weg aus.
Im Grunde mein problem ist, dass Xcode scheint zu halten, darunter eine Ressource-Datei (z.B. eine Textdatei) in der app-bundle, auch wenn die Datei aus dem Projekt entfernt.
Hier ist es im detail, was hier passiert.

   Added a file to the project (both by choosing file - new file or dragging a file to the Xcode groups and files left column checking add to project folder if needed checkbox)
   Compiled and launched the project in simulator
   Verified that the file is present in myApp.app bundle, located in User/Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app and even in <my Xcode projects folder>/myApp/build/debugiPhonesimulator/myApp.app
   Deleted the file from groups and files column in Xcode
   Deleted the actual file with Finder in <my Xcode projects folder>/myApp/myFile
   Deleted User/Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app and even <my Xcode projects folder>/myApp/build/debugiPhonesimulator/myApp.app
   Emptied the trash
   Verified that there is no reference to the file with Finder spotlight
   Verified that there is no reference to the file with Xcode search
   Rebuilt and relaunched the app in simulator
   Verified that a brand new /Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app has been just created
   Verified the content of /Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app bundle: the file is still there. Where the h. did Xcode take it from?

Ich bin sicherlich fehlt etwas wirklich offensichtlich. Keine Hilfe?

  • Wenn Sie nicht reinigen oder löschen Sie die build-Verzeichnis, dann werden die alten Dateien nicht entfernt werden. Der build-Prozess nicht entfernen Sie Dateien aus dem app-bundle, es gibt nur noch Sie.
  • Die top-Antwort auf stackoverflow.com/questions/5714372/... hat eine viel bessere Lösung für Xcode 4.
InformationsquelleAutor user236739 | 2010-04-13
Schreibe einen Kommentar