Bug 8676 - Content not removed from device
Summary: Content not removed from device
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 6.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-11-29 16:45 UTC by Allie Miller
Modified: 2017-02-07 10:51 UTC (History)
6 users (show)

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:

Description Allie Miller 2012-11-29 16:45:34 UTC
After removing content from project, it still remains in the device. Has attempted to fix this with a Clean All and the content is NOT in the application bundle on the Desktop, but still shows up on the device after doing Run->Upload to Device. 

Can test this by:
Take a project - any project, add Content. Run->Upload to Device. 
See the content on the device. 
Remove the content from the project, Clean project, Run->Upload to Device. 
Content is still on device.
Comment 2 Sebastien Pouliot 2012-12-04 18:48:11 UTC
AFAIK* "Upload" only means mtouch is called to reinstall the already built .app. That's useful in some cases, e.g. if you have many devices and want to install the same binary on every devices (rebuilding each time would take a lot of extra time).

* moving to MonoDevelop, it's an addin feature
Comment 3 Jeffrey Stedfast 2012-12-07 16:51:54 UTC
mtouch would need to support an argument which would do a remove and then upload of the app
Comment 4 Alex Soto [MSFT] 2017-01-04 04:51:49 UTC
@jeff was this ever implemented?
Comment 5 Manuel de la Peña [MSFT] 2017-02-07 10:51:19 UTC
I can confirm that this is not longer an issue, I did the following:

1. Downloaded a sample app from here https://developer.xamarin.com/samples/xamarin-forms/WorkingWithImages/
2. Executed the application and confirmed that the embedded resource is present (3rd tab)
3. Remove the beach.jpg image and re-built the project.
4. Executed the application and confirmed that the embedded resource is not longer present. 

My executing env is: 

=== Xamarin Studio Community ===

Version 6.1.5 (build 0)
Installation UUID: 01060673-5bee-4cf4-a4c2-5e36a18d39a2
	Mono 4.6.2 (mono-4.6.0-branch/ac9e222) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406020016

=== NuGet ===


=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.2.1 (11766.1)
Build 8C1002

=== Xamarin.Mac ===

Version: (Xamarin Studio Community)

=== Xamarin.Android ===

Version: (Xamarin Studio Community)
Android SDK: /Users/mandel/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		4.0.3 (API level 15)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		6.0   (API level 23)

SDK Tools Version: 25.1.6
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

Android Designer EPL code available here:

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: (Xamarin Studio Community)
Hash: 7beaef4
Branch: cycle8-xi
Build date: 2016-12-20 02:58:14-0500

=== Xamarin Inspector ===

Hash: 1f3067d
Branch: master
Build date: 11/15/2016 10:13:59 PM

=== Build Information ===

Release ID: 601050000
Git revision: 7494718e127af9eaec45a3bd6282d3da927488bd
Build date: 2017-01-17 10:31:01-05
Xamarin addins: c92d0626d347aaa02839689eaac2961d24c9f446
Build lane: monodevelop-lion-cycle8

=== Operating System ===

Mac OS X 10.12.3
Darwin MacBook-Pro.local 16.4.0 Darwin Kernel Version 16.4.0
    Thu Dec 22 22:53:21 PST 2016
    root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Addin Maker 1.3.2
StyleCop Support
Xamarin Inspector