How can I create an app icon on iOS?

Kim Strasser 661 Reputation points
2023-03-06T12:03:49.5566667+00:00

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:

https://developercommunity.visualstudio.com/t/I-cannot-open-Infoplist-and-Entitlement/10297547

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.

https://developercommunity.visualstudio.com/t/Assetsxcassets-is-not-working-in-Visual/10295764

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">
  <PropertyGroup>
    <TargetFramework>net7.0-ios16.1</TargetFramework>
    <OutputType>Exe</OutputType>
    <UseMaui>true</UseMaui>
    <UseMauiEssentials>true</UseMauiEssentials>
    <SupportedOSPlatformVersion>15.0</SupportedOSPlatformVersion>
...
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,922 questions
C#
C#
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.
10,306 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,626 Reputation points Microsoft Vendor
    2023-03-08T05:19:45.8433333+00:00

    Hello,

    The issue with the arrows exists if I use the MonoGame iOS Application template(version 3.8.1.303) 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.


1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more