Re: deleting files on install [iphone]
Re: deleting files on install [iphone]
- Subject: Re: deleting files on install [iphone]
- From: Roland King <email@hidden>
- Date: Wed, 29 Sep 2010 23:20:50 +0800
On 29-Sep-2010, at 10:41 PM, Steve Christensen wrote:
>
> You could either find the app in the build directory, delete it and rebuild the app, or do a clean build. Either way you'll be starting with a blank slate.
>
>> 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?
>
> Doing a build for the simulator or a build for the device will give you the same results; Xcode is unlikely to do it the "right" way in one case and the "wrong" way in another.
>
> I assume that the set of HTML files will only be changing as you do development, and that when you're ready to ship, the set of files/file names won't change further. If so, I wouldn't worry about it during development (simulator or device) unless having HTML files with the old names in addition to the new/correct names could affect the operation of the app.
>
> When you're ready to do a distribution build, you can do a clean build in one of the ways I mentioned above to make sure you're only copying the latest and greatest files to your shipping product.
>
> steve
>
My build dir is working fine. It's doing exactly what I'd expect and making a build product with the current set of files, it deletes those which were deleted and renames those renamed. By build dir I mean ~/<mycustombuild>/Debug-iphonesimulator/MyApp.app/<mydir>. That's staying perfectly in sync even when I don't clean.
However by the time it's installed to/copied over over to the actual sim it seems to merge the contents, the sim is running out of ~/Library/Application Support/iPhone Simulator/<version>/Applications/<UUID>/MyApp.app. That happens even if I did a clean build, the install process appears to be separate from the build. I don't know how the installation process works on the device itself, I'm pretty sure that if I remove the application totally from the device then it's copied from scratch, if however I just update with it in-place I'm fairly sure the UUID path is retained and I don't know if the app if totally overwritten or merged as it is on the sim.
It matters to me if old files persist, I actually need to ensure my directory is an accurate copy of the current build, an absent file means something so old files need to not be there so I really need the entire path to be regenerated. _______________________________________________
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