How can I create an app icon on iOS?

Kim Strasser 561 Reputation points

I don't know how to create an app icon for my iOS application. I have tried to use Assets.xcassets but it's not working in Visual Studio for Mac 17.6 Preview (17.6 build 402) after adding Maui to my .csproj file:

In addition, I have tried to open Assets.xcassets when I don't add Maui to my project and it doesn't work. I just did this for testing, I need Maui in my project.

Is it no more necessary to use Assets.xcassets when I add Maui to my project?

How can I create an app icon for my iOS project? The app icon needs to work on iPhone and iPad.

My .csproj file:

<Project Sdk="Microsoft.NET.Sdk">
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,603 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 17,591 Reputation points Microsoft Vendor


    The issue with the arrows exists if I use the MonoGame iOS Application template(version or the iOS->App->.NET template. I want to use several .png icon files or an .svg file for the app icon

    Base on iOS->App->.NET template project testing, you can refer to the following steps to change the default icons:

    • Designing multiple icon images with 20x20, 29x29,40x40,58x58,60x60,76x76,80x80,87x87,120x120,152x152,167x167,180x180,1024x1024 sizes
    • Double-clicking the Assets.xcassets file in your project by VS for Mac, it will prompt you to open edit assets by Xcode
    • Selecting Assets in Xcode, there is an image set named "AppIcon", all default icons are in this set.
    • Replacing the default icon images with your icon images in first step.

    In Visual Studio for Mac 2019 there was an editor for this when you double clicked on Assets.xcassets, I hope this editor comes back in a future Visual Studio for Mac release.

    You can provide feedback and suggest this featureto product team with Visual Studio for Mac. Please see Visual Studio for Mac: Report issues & bugs - Visual Studio for Mac | Microsoft Learn

    For the Info.plist and Entitlements.plist issues, you can follow the progress at DC- Opening Info.plist and Entitlements.plist is not always working as expected in Visual Studio for Mac 2022 - Visual Studio Feedback.

    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.

0 additional answers

Sort by: Most helpful