Xamarin Warning: AppIcons App Icon Set Has 2 Unassigned Children

When compiling, I get the following warning:

Warnings:

/Users/some-user/Projects/SomeApp/SomeApp/SomeApp.csproj(Build) β†’ /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets(Target _CoreCompileImageAssets β†’

Resources / Images.xcassets: actool warning: The AppIcons app icon set has 2 unassigned children.

1 Warning (s)

I presented each image for application icons (except watch / car). There is no "unassigned" value in the Contents.json file. I also tried disabling each image and installing it again. I am still getting a warning.

I am currently using Xamarin Studio 5.9.7 (build 22), Xamarin.iOS 9.0.1.29 with Mono 4.0.4., Xcode 7.0.1 (8228) Build 7A1001. All this works on Mac OS X 10.10.5.

How to remove a warning?

+5
source share
3 answers

If you have icons in the folder. \ AppIcons.appiconset, which is not used / is not specified in the Contents.json file, then you will be warned: "The AppIcons application icon set has * unassigned children." Look at all the icons in the folder and see all the icons listed in Content.json, then remove the extra icons from the folder. Icons that are not referenced, even if they are not included in the project, will lead to a warning to the compiler.

+6
source

iOS 9.2.1, Xcode 7.2.1, ARC enabled

If the JSON file looks good, then the asset directory might just be corrupted; this sometimes happens when you drag and drop files and possibly accidentally delete a file from a folder along a path or change the path in Xamarin for this resource.

In any case, see if Xamarin has any way to delete the asset catalog and add it again, and then specify which iOS target and device will be launched in your application to properly configure the asset catalog.

You will need to add each asset again to the asset directory after the directory is configured.

Hope this helps. Hooray!

+3
source

I had the same problem. I cleaned up the project and recompiled it, and everything was in order. Also, when the icon was missing, it was added only after cleaning the project.

+1
source

Source: https://habr.com/ru/post/1235205/


All Articles