Skip to content

Loosing icons and images when using xcassets in libraries #5755

@mandel-macaque

Description

@mandel-macaque

Steps to Reproduce

  1. One solution containing two or more projects
  2. An app project (multiplatforms), using Xamarin.Forms
  3. A library project (multiplatforms), using Xamarin.Forms

In the app project, under iOS, fill the Assets.xcassets with app icon and a new Media.xcassets with images.

In the library project, under iOS, add a nex XXXX.xcasset file and add images in it.

Make sure that the app refers to the library and then build it.

Expected Behavior

Images added to the assets are present.

Actual Behavior

The application loses its images, the app icon as well as other assets that were in xcassets folder.

Move the images outside the xcassets, put them in the Resources folder, delete the xcassets file and rebuild. App icon and images are back.

Example Project (If Possible)

listviewtest.zip

This is from a feedback issue

Metadata

Metadata

Assignees

Labels

enhancementThe issue or pull request is an enhancementiOSIssues affecting iOSmacOSIssues affecting macOS

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions