Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

electron app Mac app store icon issue -> "missing required icon"

I am trying to upload mas -> .pkg file to mac app store and it is continuously giving me following error

ERROR ITMS-90236: "Missing required icon. The application bundle does not contain an icon in ICNS format, containing both a 512x512 and a 512x512@2x image. For further assistance, see the Apple Human Interface Guidelines at https://developer.apple.com/macos/human-interface-guidelines/icons-and-images/app-icon"

I have added 512*512 ICNS file and png file of icon in build.

Icon is working fine if I create DMG file. its also showing me proper icon in mac dock and its installer.enter image description here So where do I exactly need to add my icon?

like image 423
Varis Bhalala Avatar asked Nov 05 '25 01:11

Varis Bhalala


2 Answers

I was able to fix it by creating a folder called "icon.iconset". Keep two png in this folder.

For each file the image size was the same pixel dimensions. For example icon_512x512.png was 512 pixels by 512 pixels. When the file name was marked with @2x the pixel dimensions would double. So [email protected] would be 1024 pixels by 1024 pixels.

After ensuring that folder is setup correctly, I navigated to the folder that contained the folder I just created in Terminal and ran the following command.

iconutil --convert icns icon.iconset

This generated a .icns file

like image 97
Sagar Sukode Avatar answered Nov 07 '25 08:11

Sagar Sukode


Try to create a folder with icon.iconset name and in that folder add one image with 512 X 512 dimension and put a image name is icon_512x512.png.

Add one more image with 1024 X 1024 dimension and put a image name is [email protected]

then navigate to that source folder (icon.iconset) try to execute below command.

iconutil --convert icns icon.iconset
like image 27
Hardik Kothari Avatar answered Nov 07 '25 07:11

Hardik Kothari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!