Bug 34544 - [iOS] Ad-hoc build doesn't include iTunesArtwork when using ITunesArtwork Build Action
Summary: [iOS] Ad-hoc build doesn't include iTunesArtwork when using ITunesArtwork Bui...
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 9.0 (iOS9)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Jeffrey Stedfast
Depends on:
Reported: 2015-10-02 17:34 UTC by Kent Green [MSFT]
Modified: 2015-10-07 10:21 UTC (History)
3 users (show)

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

Sample & logs to reproduce error (399.55 KB, application/zip)
2015-10-02 17:34 UTC, Kent Green [MSFT]
Corrected sample (31.34 KB, application/zip)
2015-10-06 19:45 UTC, Kent Green [MSFT]

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 Kent Green [MSFT] 2015-10-02 17:34:38 UTC
Created attachment 13185 [details]
Sample & logs to reproduce error

## Overview
From this enterprise desk case:

Customer reports that an Ad-hoc build doesn't include iTunesArtwork when using ITunesArtwork Build Action. 

## Steps to reproduce
I was able to reproduce the issue given the following steps:
1. Build the sample project, (it's currently set with the iTunesArtwork to the ITunesArtwork Build Action).
2. Right-click the project and select "Archive for Publishing"
3. Go through the publishing workflow, select an ad-hoc build, and save the resulting IPA.
4. Install the IPA to iTunes.
5. Open "My Apps" in iTunes.

## Expected Behavior
iTunes Artwork should be shown for the app. (In the case of my sample, I used test icons from http://placehold.it/ that are grey boxes labeled with the pixel dimensions).

## Actual Behavior
iTunes Artwork is not displayed for the app.

## Workaround
If you set the build action to "Bundle Resource", the icons are shown once again in iTunes.

## Build information
=== Xamarin Studio ===

Version 5.9.7 (build 9)
Installation UUID: 8ef63a7c-1b18-40de-a334-7f78777fcb55
	Mono 4.0.4 ((detached/d481017)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400040004

=== Apple Developer Tools ===

Xcode 7.0.1 (8228)
Build 7A1001

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: d8e9592
Branch: master
Build date: 2015-09-18 23:22:05-0400

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/kentgreen/Library/Developer/Xamarin/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)
Java SDK: /usr
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509070009
Git revision: 31fa64709030b3edb971237780a452a4c69943c4
Build date: 2015-09-17 11:44:37-04
Xamarin addins: b105d33d8cd72911ff2cf3ee0b7715d37e5f19a6

=== Operating System ===

Mac OS X 10.10.5
Darwin Kents-Macbook-Pro.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
Comment 2 Rolf Bjarne Kvinge [MSFT] 2015-10-05 03:30:33 UTC
@Jeff, can you have a look at this?
Comment 3 Jeffrey Stedfast 2015-10-05 15:44:29 UTC
Make sure that the checkbox to include the iTunesArtwork is toggled in the project options.
Comment 4 Kent Green [MSFT] 2015-10-06 19:45:37 UTC
Created attachment 13214 [details]
Corrected sample

Oops, I must have made a mistake in saving the original test case. 

I've updated the test case so you can see that even though the images are set in the iTunes Artwork in info.plist; and the images themselves are set with the ITunesArtwork build action; it's still not showing up in iTunes.
Comment 6 Jeffrey Stedfast 2015-10-07 10:21:03 UTC
I didn't say to go to your Info.plist, I said go to your Project Options in the IPA Options section and check the checkbox that says "Include iTunesArtwork and metadata"