TheM00s3
TheM00s3

Reputation: 3721

App icon displays a black square.

I am having my app icon be displayed as a black square instead of the intended image. enter image description here

I have placed all of my AppIcons into the folder, Im wondering what could be causing this.

Upvotes: 0

Views: 2338

Answers (2)

Brendan09
Brendan09

Reputation: 26

Your image needs to be an opaque PNG. No transparency or anything, as well as being the correct size.

If it already is that, try opening it in Preview and re-saving it as a PNG. That way OS X 'generated' it and it should be compatible. If that helps fix the issue, then your image editing program is saving in the wrong format...see info below.

Apple has this to say on generating PNGs:

For all images and icons, the PNG format is recommended. You should avoid using interlaced PNGs.

The standard bit depth for icons and images is 24 bits—that is, 8 bits each for red, green, and blue—plus an 8-bit alpha channel.

Upvotes: 1

Nathan
Nathan

Reputation: 1647

I have had this happen when the app is listed as a .png file, but the system is recognizing it as a .jpg or some other type ... find your icon in "finder" and open it with preview, go to the file menu select "export as" and make sure you choose PNG as the save format. Delete the old version in the application, delete the derived data, clean your project, and rebuild the application.

Upvotes: 0

Related Questions