Bug 39869 - Duplicate On-Demand Resources Tag Error with Image Xcassets
Summary: Duplicate On-Demand Resources Tag Error with Image Xcassets
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: MSBuild ()
Version: XI 9.4 (iOS 9.2)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2016-03-23 18:03 UTC by Kevin Mullins
Modified: 2016-03-24 19:21 UTC (History)
3 users (show)

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


Attachments
Build output (18.99 KB, text/plain)
2016-03-23 18:03 UTC, Kevin Mullins
Details
Setting the same On-Demand Resource Tag in Xcode (128.42 KB, image/png)
2016-03-23 18:04 UTC, Kevin Mullins
Details
Setting the same On-Demand Resource Tag in Xcode (126.45 KB, image/png)
2016-03-23 18:05 UTC, Kevin Mullins
Details
Setting the same On-Demand Resource Tag in Xamarin Studio (98.49 KB, image/png)
2016-03-23 18:06 UTC, Kevin Mullins
Details
Setting the same On-Demand Resource Tag in Xamarin Studio (97.50 KB, image/png)
2016-03-23 18:07 UTC, Kevin Mullins
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:
RESOLVED FIXED

Description Kevin Mullins 2016-03-23 18:03:55 UTC
Created attachment 15500 [details]
Build output

In a Xamarin.tvOS project if you assign the same On-Demand Resource Tag to more than one Image Set in an Asset Catalog you will get a duplicate Tag error from the actool at build time in the form (see attached build output):

        Assets.xcassets: error : 
	Assets.xcassets:  actoolerror : Multiple specifications for the tag set "level-1".

This behavior is incorrect. The same On-Demand Resource Tag should be able to be assigned to several different Image Sets (either inside the same Asset Catalog or different ones) so that they can be compiled into an Asset Package by the actool. For example, making the same assignment in Xcode and compiling the app works correctly (see attached images).

From testing this in Xcode, it looks like Xamarin Studio is malforming the Assets.info plist file that is being sent to the actool.

The sample Xamarin.tvOS project that is having this issue can be found at (look in the Level01.xcassets catalog):
https://github.com/xamarin/private-samples/tree/master/edu/tvOnDemand
Comment 1 Kevin Mullins 2016-03-23 18:04:56 UTC
Created attachment 15501 [details]
Setting the same On-Demand Resource Tag in Xcode

This works as expected
Comment 2 Kevin Mullins 2016-03-23 18:05:38 UTC
Created attachment 15502 [details]
Setting the same On-Demand Resource Tag in Xcode

Duplicate tags in Image Set are ok
Comment 3 Kevin Mullins 2016-03-23 18:06:33 UTC
Created attachment 15503 [details]
Setting the same On-Demand Resource Tag in Xamarin Studio

This works as expected for only one instance of the tag (which is incorrect).
Comment 4 Kevin Mullins 2016-03-23 18:07:17 UTC
Created attachment 15504 [details]
Setting the same On-Demand Resource Tag in Xamarin Studio

Setting another Image Set with the same tag, which should be valid, fails.
Comment 5 Kevin Mullins 2016-03-23 18:11:11 UTC
The working Xcode version of the project is available here:
https://github.com/xamarin/private-samples/blob/master/edu/OnDemandXcode.zip
Comment 6 Jeffrey Stedfast 2016-03-24 19:21:58 UTC
fixed in master and cycle7