Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

appicon

maui

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

like image 724
hattmannsandi Avatar asked Jan 31 '26 00:01

hattmannsandi


1 Answers

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

like image 116
Zack Avatar answered Feb 01 '26 15:02

Zack



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!