Bug 2844 - Stale image files remain in the app bundle
Summary: Stale image files remain in the app bundle
Status: RESOLVED DUPLICATE of bug 17180
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Jeffrey Stedfast
URL:
: 3094 12902 ()
Depends on:
Blocks:
 
Reported: 2012-01-11 12:12 UTC by Alan McGovern
Modified: 2014-01-10 15:52 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 17180

Description Alan McGovern 2012-01-11 12:12:33 UTC
i don't have time to make a test case now, but i think there is a little bug with the image manager stuff (think thats your department).  If you create a universal app and add a splash image for the iPad and then later switch it to an iPhone only app and remove that iPad image, then rebuild, the iPad image will still be in the app and used

this actually wasn't on simulator it was with a .ipa
Comment 1 Alan McGovern 2012-01-11 12:31:42 UTC
1) Create a monotouch application
2) Add Default.png, Default@2x.png, Default-Portrait.png etc to the project.
3) Build and execute it. The launch images are used in the simulator
4) Delete these files from the project and filesystem by right clicking and choosing 'Remove' and then 'Delete'.
5) Build and execute the project. The launch images are still used in the simulator and they also still exist in the 'bin' directory. We should really be deleting these from the build directory once they are removed from the project when we rebuild.
Comment 2 Alan McGovern 2012-01-11 12:32:14 UTC
Temporary workaround: Clean the solution and then build it.
Comment 3 Miguel de Icaza [MSFT] 2012-01-13 19:02:54 UTC
Perhaps we should sync changes, compare the directory trees?

Otherwise removing binaries from existing builds would be a matter of scanning every possible configuration and deleting the files from there.
Comment 4 Mikayla Hutchinson [MSFT] 2012-01-16 13:44:48 UTC
Incremental cleaning is nontrivial, but we'll get it almost "for free" when we switch to xbuild.
Comment 5 Jeffrey Stedfast 2012-10-15 18:31:38 UTC
*** Bug 3094 has been marked as a duplicate of this bug. ***
Comment 6 Jeffrey Stedfast 2013-03-13 15:39:09 UTC
*** Bug 11121 has been marked as a duplicate of this bug. ***
Comment 7 Jeffrey Stedfast 2013-07-08 17:41:10 UTC
*** Bug 12902 has been marked as a duplicate of this bug. ***
Comment 8 Jeffrey Stedfast 2013-07-08 17:42:46 UTC
bug #12902 is basically the same problem, except it's about the exe name rather than an image file.
Comment 9 Jeffrey Stedfast 2014-01-10 15:52:35 UTC

*** This bug has been marked as a duplicate of bug 17180 ***