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.
source
share