deleting files on install [iphone]
deleting files on install [iphone]
- Subject: deleting files on install [iphone]
- From: Roland King <email@hidden>
- Date: Wed, 29 Sep 2010 22:03:32 +0800
I'm working on an iPhone app which has as part of the bundle a small directory of static HTML files. I keep them in my code directory and have a custom copy phase to copy them into the bundle on build. That copy is very simple, just copies to 'Resources' and the whole hierarchy gets copied (thanks to those blue directories I don't fully understand but they work). This is good. I find that if I remove or rename files in my source directory (rename FOO to BAR) then that's properly reflected in the build product, the old files are removed, the new files are there, it's as if the directory was rsynch'ed into the build product.
However when the application is installed into the simulator it appears that the current contents of the build directory is copied over what is there already, so if I had a FOO directory and renamed it to BAR, I get both of them, any other files removed or renamed are still there from before.
I've tried messing about with custom build phases, including those for 'install only' but cannot find a way to clean my custom directory before the files are copied over.
I don't know if this is going to affect the device as well (it's a bit harder to figure out what files are installed there) or if it's just the way the simulator is synched and I need to just clean the directory manually (~/Library/Application Support/iPhone Simulator .. etc) when I make changes.
Is there a custom step I can use here to clean the simulator install directory before the install happens and is this something I will need to worry about on the device itself or am I guaranteed when an install to the device happens it goes in totally clean and wipes all that was there before? _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden