Hi! Long time no speak. Hope this finds you all well.
I’ve been developing for a month with of iphone and I’m having great fun. I have stumbled upon what appears to be a silly problem, but can’t figure out.
My app has a couple of folders for images and sounds. Today I’ve started to reorganize them, erasing (well, trying to erase) not used items, adding some folders for clarity, etc, but no matter what I do, the app keeps including the old items. I’ve even removed the bin and data folder, and the reference to it on the xcode project, but the old assets still get copied to the simulator and phone. I’m looking for options in xcode to see where the copying of the data assets is managed, but no luck so far. Anyone has a clue?
Hmm it may be a caching problem.
I think I had the same issue before once.
try deleting the build/ folder from your project folder. remove all files from xcode that are in bin/data/
quit xcode - reopen and re-add the bin/data/subfiles that you want in the project.
also check the copy files section of your target ( expand the target by clicking on the arrows )
then delete any files from bin/data/ that might be in there.
oh wait! found a workaround.
if you change the bundle identifier of the target so that the device thinks it’s a new app, you get rid of the old assets.
I’m not super familiar with iphone bureaucracy so I’m not sure if that is something I should do or not, but it works for the moment. Still, there should be a way to get rid of assets on a project, so if anyone has an explanation that’d be welcome.