Search code examples
iosmauiappicon

Icon changes not deployed to the ios device / .NET Maui Visual Studio 2022 17.4.2 on Windows 10


  • Changing the app icon SVG-file in the project file

  • Deleting the app from the device

  • Delete everything in /obj and /debug

  • Rebuild project and deploying it to the ios device Still the same icon from the app template (blue, .net label)

  • With Visual Studio 2022 for OsX and deploying it to the emulator everything works as expected.

Has anyone a workaround for this under Visual Studio 2022 / Windows 10?

<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" />


Solution

  • Did you use Hot Restart to deploy from Windows to iOS devices? If so, iOS Hot Restart does not currently support using asset catalogs. This is a problem that exists in Xamarin.Forms, and it is the same in Maui. When using Hot Restart, your app will show the default icon and launch screen. When paired to a Mac, or developing on a Mac, your Asset Catalogs will work.

    For more details, you can check the official documentation:

    Xamarin Hot Restart | Microsoft

    Maui Hot Restart | Microsoft