3
  • 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" />

1 Answers1

2

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

Zack
  • 1,255
  • 1
  • 2
  • 5
  • Thanks again, i am now using my mac for builds and everything works as expected. – hattmannsandi Dec 13 '22 at 08:36
  • Thanks for your response! If above answer is helpful, please accept it as answer(click the ✔ in the upper left corner of this answer), it will help others who have similar issue. Thanks in advance! – Zack Dec 13 '22 at 08:43