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" />
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With