Ma question aujourd'hui concerne la façon dont Xcode gère les fichiers de ressources dans l'ensemble d'applications qu'il crée. Je sais que c'est peut-être trivial, mais je ne trouve pas de solution facile. Fondamentalement, mon problème est que Xcode semble continuer à inclure un fichier de ressources (par exemple un fichier texte) dans l'ensemble de l'application, même si le fichier a été retiré du projet. Ici, c'est en détail ce qui se passe ici.Xcode ne laissera pas aller un fichier de ressources
⁃ 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?
Il me manque sûrement quelque chose de vraiment évident. De l'aide?
Si vous ne nettoyez pas ou ne supprimez pas le répertoire de construction, les anciens fichiers ne seront pas supprimés. Le processus de construction ne supprime pas les fichiers du lot d'applications, il les ajoute uniquement. – logancautrell
La meilleure réponse à http://stackoverflow.com/questions/5714372/how-to-empty-caches-and-clean-all-targets-xcode-4 a une bien meilleure solution pour Xcode 4. –