SSM
SSM

Reputation: 409

iOS app icon not showing up using flutter

I have tried so many ways and fixes but my app icon still not showing up. I'm using flutter and I used the flutter_launcher_icons package but still no use.

Here's my pubspec.yaml dev_depend:

dev_dependencies:
  flutter_launcher_icons: "^0.7.3"
  flutter_test:
    sdk: flutter

and here the config:

flutter_icons:
  android: "launcher_icon"
  ios: "AppIcon"
  image_path_ios: "assets/icon/icon.png"
  image_path: "assets/icon/icon.png"

and here's my AppIcon file enter image description here

This is my flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.20.0-1.0.pre.118, on Mac OS X 10.15.5 19F101, locale en-US)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[!] IntelliJ IDEA Community Edition (version 2018.2.5)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

This is my Asset Catalog App Icon looks like:

enter image description here

Upvotes: 4

Views: 7358

Answers (2)

Dhiraj Singh
Dhiraj Singh

Reputation: 29

It is worked for me in iOS through manual changes when dependency not worked:-

  1. I have generated app icon which required in manual icon changes through site (appicon.co)
  2. There I got zip file of Image in which I found a folder Assets.xcassets
    after extracting the zip file
  3. I found Appicon.appiconset inside the folder Assets.xcassets
  4. I replaced that Appicon.appiconset folder to iOS/runner/Assets.xcassets/Appicon.appiconset folder
  5. Flutter pub get
  6. Flutter Run

Upvotes: 1

SSM
SSM

Reputation: 409

Thanks to @SamiHaddad, I missed setting the AppIcon to Asset Catalog App Icon Set Name in the general section of the Runner file in Xcode. This fixed my issue.

Upvotes: 3

Related Questions