Sorry for your time... -> This case is solved for me - if I copy the app then the message is shown with correct icon (from .icns-file) - so it seems to be a problem only when I integrate the .icns-file into my app first time - maybe operating-system does not refresh...
This was the problem:
Hello to All,
if I use Dialog-ShowMessage it shows no/empty icon (badicon) - as shown in attached screenshot. I didn't find out how to set the icon correctly. Can someone help me out, how or where I can set the icon? (I put the .icns file into app-package and set it in Info.plist - App-Icon is shown correctly -- and I load .ico-file for program in project-options-application and set icon for form -- all is ok, only the message has no icon). Thank you a lot.
(System:BigSur 11.1 - Lazarus 2.0.10 - FPC 3.2.0 - x86-64-darwin-cocoa)
Code that generates the attached screenshot (without empty bad icon):
uses ..., Dialogs ...
ShowMessage('bad icon? - Dialogs-ShowMessage - bigsur');