Why is my icon sometimes missing or crossed out?

Why does my application package sometimes skip its icon and / or have this cancel symbol?

alt text http://img33.imageshack.us/img33/2690/picture2oql.png

I looked at the .plist file and the path and icon icon exist and are correct. If I right-click the node and click "Get Information", the icon will appear in the "Preview" section.

This happened after I moved some code to my qmake file (but didn't make any changes semantically). Is this just a bug in the Finder? There seems to be no way to update the view.

What usually causes the Finder to display this cancel symbol and / or not load the package icon?

+3
source share
1 answer

The icon "You cannot run this application."

Search will display this icon if:

  • application marked as untrustworthy (i.e. downloaded as @kiamlaluno)
  • the application uses the wrong architecture (i.e.PPC application on a computer without a socket)
  • the application package is confused (create an empty folder with the extension .app)

Since you are creating this program, I suspect that Finder noticed the .app package before it completed the compilation and thought it was broken. When you move the application to another folder, Finder updates the bundle (which is now complete) and displays the correct icon.

+3
source

Source: https://habr.com/ru/post/1759439/


All Articles