Bug 30136 - Image asset sets are broken
Summary: Image asset sets are broken
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Other ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Chris Hamons
URL:
Depends on:
Blocks:
 
Reported: 2015-05-15 13:15 UTC by matt
Modified: 2017-01-20 18:19 UTC (History)
3 users (show)

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


Attachments
Example pdf image to test with.. (74.06 KB, application/pdf)
2015-05-15 13:17 UTC, matt
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 NORESPONSE

Description matt 2015-05-15 13:15:51 UTC
1. Open XIB in Interface Builder
2. Create Asset Catalog
3. Add single vector image with a pdf file, lets call it 'play_arrow'
4. Use 'play_arrow' image in a button
5. Back to Xamarin Studio, the the xcassets & imageset/Contents.json & play_arrow.pdf file are copied over - this works
6. Build project, Application output shows "Could not find image named 'play_arrow'"
7. Run project, image not visible
8. Open XIB in Interface Builder again, image no where to be found
Comment 1 matt 2015-05-15 13:17:17 UTC
Created attachment 11218 [details]
Example pdf image to test with..
Comment 2 matt 2015-05-15 13:39:43 UTC
Upon further testing, it appears that image asset catalogs do not work at all in Xamarin Studio, even without using vectors.. 

Is there any Xamarin documentation listing what works and doesn't work between the xcode <-> Xamarin Studio interop?
Comment 3 Jeffrey Stedfast 2015-05-15 13:45:26 UTC
Make sure to set the BuildAction to "ImageAsset" for all files within the Images.xcasset folder.
Comment 4 matt 2015-05-15 13:57:56 UTC
Looks like that works, thanks. Would be nice if the xcode -> Xamarin exporter was able to do that. Guess this issue can be closed now.
Comment 5 matt 2015-05-15 14:21:39 UTC
*sigh* looks like I spoke too soon.. not sure what changed but getting the "Could not find image named.." outputs and images not displaying when ran. The images are now showing up between Interface Builder and Xamarin Studio.

Any idea what could be going on?
Comment 6 matt 2015-05-15 18:55:53 UTC
Updated the title to reflect the bug that image asset sets are broken. Xamarin support please test image assets on latest stable Xamarin, it only takes a few minutes.
Comment 7 Chris Hamons 2015-06-02 16:39:11 UTC
@Matt

Could you post instructions on how to reproduce your issue. Given the back and forth, I'm a bit confused what exactly doesn't work.
Comment 8 Timothy Risi 2017-01-20 18:19:16 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks!