Bug 39137 - Changes in Info.plist not picked up by build system until project cleaned.
Summary: Changes in Info.plist not picked up by build system until project cleaned.
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 9.4 (iOS 9.2)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Vincent Dondain [MSFT]
URL:
: 38635 39900 ()
Depends on:
Blocks:
 
Reported: 2016-02-25 20:13 UTC by Jon Goldberger [MSFT]
Modified: 2016-05-18 11:57 UTC (History)
8 users (show)

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


Attachments
Test Project (453.64 KB, application/zip)
2016-02-25 20:13 UTC, Jon Goldberger [MSFT]
Details


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:
VERIFIED FIXED

Description Jon Goldberger [MSFT] 2016-02-25 20:13:27 UTC
Created attachment 15177 [details]
Test Project

## Description

Changes in Info.plist not picked up by build system until project is cleaned. Noted especially with the AppIcon and LaunchImage settings. Changes to Device Orientation setting, however, are picked up. 


## Steps to reproduce

1. Open the attached test project in Xamarin Studio on OS X (did not test in Visual Studio)

2. Deploy the app to a simulator. Note that the launch image is shown. Stop the app. 

3. Open the Info.plist file and in the Universal Launch Images section, change the source to "Don't use asset catalog."

4. Launch the app again. 

Expected result: Launch image will _not_ be displayed.

Actual result: Launch image is displayed. 

5. Now clean the project and deploy again and the result will be as expected.


## Regression status

This is a regression in the current stable versions.

BAD: XS 6.0 (build 4520), XI 9.7.0.334
BAD: XS 5.10.2 (build 56), XI 9.4.1.25
GOOD: XS 5.10.1 (build 3), XI  9.2.1.54


## Environment (non-working, current stable)

=== Xamarin Studio ===

Version 5.10.2 (build 56)
Installation UUID: 964c531b-d928-456b-a9ae-e1f82266b360
Runtime:
	Mono 4.2.2 (explicit/996df3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402020030

=== Xamarin.Profiler ===

Version: 0.22.0.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 7.2.1 (9548.1)
Build 7C1002

=== Xamarin.iOS ===

Version: 9.4.1.25 (Business Edition)
Hash: 962a050
Branch: master
Build date: 2016-01-29 16:59:11-0500

=== Xamarin.Mac ===

Version: 2.4.1.6 (Business Edition)

=== Xamarin.Android ===

Version: 6.0.1.10 (Business Edition)
Android SDK: /Users/apple/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

=== Xamarin Android Player ===

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

=== Xamarin Inspector ===

Version: 0.5.0.0
Hash: 45b35bb
Branch: master
Build date: Thu Jan 14 18:53:32 UTC 2016

=== Build Information ===

Release ID: 510020056
Git revision: bb74ff467c62ded42b7b7ac7fdd2edc60f8647b0
Build date: 2016-01-26 16:24:41-05
Xamarin addins: 8b797d7ba24d5abab226c2cf9fda77f666263f1b
Build lane: monodevelop-lion-cycle6-c6sr1

=== Operating System ===

Mac OS X 10.11.3
Darwin Jons-iMac.local 15.3.0 Darwin Kernel Version 15.3.0
    Thu Dec 10 18:40:58 PST 2015
    root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
Comment 1 Vincent Dondain [MSFT] 2016-02-27 12:17:13 UTC
Indeed I can now reproduce. Simply building seems to not be enough for app icons and launch images and we require you to clean as opposed to the orientation for instance that is picked up by the build system.

It seems like a bug to me and I can investigate what changed. However @Jeff might have an idea of where this comes from (;
Comment 2 Sebastien Pouliot 2016-02-29 13:22:00 UTC
@Vincent can you track this don (with Jeff's help) ?

A binary search should pinpoint when this happened - and we should add a unit test to cover this. Thanks!
Comment 3 Vincent Dondain [MSFT] 2016-02-29 15:13:50 UTC
Adding that the asset editor suffers from the same issue, unsetting an icon requires a clean/rebuild.
Comment 4 Vincent Dondain [MSFT] 2016-03-01 11:40:32 UTC
@jon, even if I agree that bug shouldn't happen, I'm seriously doubting it's a regression. I actually tried with the builds you mentioned as "good" and couldn't get the correct behavior: http://quick.as/zbgnupwbw

GOOD: XS 5.10.1 (build 3), XI  9.2.1.54

Still investigating.
Comment 5 Vincent Dondain [MSFT] 2016-03-02 13:47:36 UTC
Fixed in maccore/master - commit:c13734b54062e610086a8277843b3d5dab4fe4d2.
Comment 6 Vincent Dondain [MSFT] 2016-03-02 17:04:28 UTC
*** Bug 38635 has been marked as a duplicate of this bug. ***
Comment 7 Brendan Zagaeski (Xamarin Team, assistant) 2016-03-27 21:09:04 UTC
## Verification status: verified fixed on current Cycle 7 Preview of Xamarin.iOS


### Tests with Xamarin Studio 6.0 (build 4801)

GOOD: Xamarin.iOS 9.8.0.58 (fa3b68c)
BAD:  Xamarin.iOS 9.4.1.25 (962a050)
BAD:  Xamarin.iOS 9.2.1.51 (3c0ec35)
BAD:  Xamarin.iOS 9.1.0.27 (1f068b4)


### Tests with Xamarin Studio 5.10.1 (build 3)

GOOD: Xamarin.iOS 9.8.0.58 (fa3b68c)
BAD:  Xamarin.iOS 9.2.1.54 (eb4c1ef)
BAD:  Xamarin.iOS 9.1.0.27 (1f068b4)


### Tests with Xamarin Studio 5.9.8 (build 0)

GOOD: Xamarin.iOS 9.8.0.58 (fa3b68c)
BAD:  Xamarin.iOS 9.2.1.54 (eb4c1ef)
BAD:  Xamarin.iOS 9.1.0.27 (1f068b4)



(These results also corroborate Vincent's assessment on the regression status: not a recent regression.)
Comment 8 Brendan Zagaeski (Xamarin Team, assistant) 2016-03-29 16:04:57 UTC
*** Bug 39900 has been marked as a duplicate of this bug. ***
Comment 9 Sunil Kumar 2016-05-18 11:57:27 UTC
I have checked this issue with latest C7 xamarin.ios-9.8.0.318_efefc1edafbccb25395796b2a4f594c420f37bb3 + XamarinStudio-6.0.0.5156_6bb41168165682b4ed22a94364bf0cf24e6b1d5c and observed that now this issue works fine. Changes in Info.plist immediately reflects when run the project as shown in screencast: http://www.screencast.com/t/nMP7CCDYJF

Environment info:
=== Xamarin Studio Enterprise ===

Version 6.0 (build 5156)
Installation UUID: 561c7a69-0a91-4bae-ad7c-f0c79d594337
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch/0f5fdf2) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000168

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: 6.1.0.56 (Xamarin Enterprise)
Android SDK: /Users/tajinder/Desktop/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 25.1.3
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2

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

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

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

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.iOS ===

Version: 9.8.0.318 (Xamarin Enterprise)
Hash: efefc1e
Branch: cycle7
Build date: 2016-05-13 17:19:05-0400

=== Xamarin.Mac ===

Version: 2.8.0.318 (Xamarin Enterprise)

=== Build Information ===

Release ID: 600005156
Git revision: 6bb41168165682b4ed22a94364bf0cf24e6b1d5c
Build date: 2016-05-13 16:06:44-04
Xamarin addins: 32a8312bbbe9be707b6535e19c0ed3c4e4f27443
Build lane: monodevelop-lion-cycle7

=== Operating System ===

Mac OS X 10.10.5
Darwin Tajinders-iMac.local 14.5.0 Darwin Kernel Version 14.5.0
    Wed Jul 29 02:26:53 PDT 2015
    root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Addin Maker 1.3.1
DNX 0.2
NuGet Package Management Extensions 0.10.1
Test Template Parameters 0.4
JSON Copy 1.1
Manifest.addin 0.0.0.0