Hello,
Do I need to change something in the info.plist file?
Yes. You could open Info.plist and find the key named "XSAppIconAssets",then set Assets.xcassets/citizenshipicon.appiconset as the value.(The default value is Assets.xcassets/appicon .appiconset
, try to replace it with yours)
Then you can delete the default appicon.svg
, appiconfg.svg
, make sure the build action of the image named "itizenshipicon.svg" is MauiIcon, clean the bin
/obj
folder, uninstall the app from your device and re-deploy the app to your device to see the new icon.
Another issue is to change your splash screen.
splashscreen.svg
is the same name as the default splash screen, you should make sure the default file has been removed. You could check if there is only one image whose build action is MauiSplashScreen in the project. And you don't need to change something in the info.plist file for splash screen.
In addition, you could try to debug the app on iOS simulator to see if the icon and splash screen can be changed.
For more details, you can refer to Change the app icon - .NET MAUI | Microsoft Learn
Add a splash screen to a .NET MAUI app project - .NET MAUI | Microsoft Learn
Update
Also, I noticed that I am not dependent on my Mac. I think it set it up the first time and now I am using the Local Device menu tab -> iPhone name appears there.
It means that you are using HotResart,. There are some limitations, .NET MAUI apps that use iOS asset catalogs are currently unsupported by hot restart. You can connect your device to your MAC, and pair to Mac, then select your device from Remote Device (not Local Device menu tab) and check if the issue still exists.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.