Re: deleting files on install [iphone]
Re: deleting files on install [iphone]
- Subject: Re: deleting files on install [iphone]
- From: Clark Cox <email@hidden>
- Date: Thu, 30 Sep 2010 20:37:08 -0700
On Thu, Sep 30, 2010 at 6:09 AM, Roland King <email@hidden> wrote:
> ok this works for the simulator fine - what I'm actually doing is just deleting that directory by hand before build and install and it's recreated with just the new contents.
>
> It's the device I'm bothered about. This application has data stored, deleting the app off the device deletes that which is annoying enough for development and certainly won't work in the real world if I update the app. Does the device 'sync' the same way the simultor does, and copy the contents of the new application bundle over the old one, leaving behind anything which was there before or does it properly remove the Application.app and entirely replace it with the new contents?
It removes the app entirely and replaces it with the new contents.
However, that doesn't eliminate the need for a clean in your case. As
with *anything* built by Xcode, files are not removed during a build,
only added. The reason for this is simple: Xcode has no way of knowing
whether or not the existing files were put there by something else
(i.e. a shell-script build phase, another project or target, etc.).
Were Xcode to clear out the build directory on every build, it would
break many people's build processes.
In the specific case of copying a blue folder into resources, one
possible fix for you would be to, instead of using the built in Copy
build phase, use a shellscript build phase of your own that calls
rsync with the appropriate parameters to copy the directory.
--
Clark S. Cox III
email@hidden
_______________________________________________
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