The app I am building requires a lot of data and images. I was loading these directly into a project group. When I needed to change the files, the old ones were hanging around.
The folks here kindly pointed me to
IOS Simulator>Reset product and settings Product>Clean Product>Clean Build Folder
As the number of files increased, I switched to loading them by creating a Directories rather than groups when loading the data. Since doing this, I have found that the above is not cleaning the old files out. (I can't be certain that this is the root cause but it had always worked until I made this).
The way the app works is it has PNG files paired with description files. The description file tells where the specific PNG file is to be drawn in relation to all the others. The file names indicate their relative position.
I run the app in the simulator, I see images where 1) I can identify the specific file names; 2) that file is not in the project and 3) the file is not in the project folder (finder); and 4) the cleanup steps above have not blown the file away.
In some cases, 1) I see an old version of an image file being displayed by the app; and 2) I can find same image in the project and verify that it is different from what is being displayed.
If I use the steps above to blow away all the data, no images display in the app. If I load the new images, the old images get displayed. (Again, I can see the new images in the project manager and they are different from want the app displays). It appears the simulator is recycling old images from somewhere.
Is there a next level of cleanup to try to blow away the old data files?