I’m adding an icon file with
juce_add_gui_app(MyApp ... ICON_BIG "Icon.png")
but it doesn’t work with a macOS app.
The icon file seems to be found by the juceaide generator, because if I put in a wrong path, it complains.
I can see a generated Icon file in
MyApp_artefacts/JuceLibraryCode/Icon.icns, but only once I executed a build in XCode. Seems like the icon file is generated from the XCode build, not by Cmake.
Info.plist contains a property
Icon File, but that is empty on CMake generation, probably because the generated
icns file couldn’t yet be found. Only once I execute a full build in XCode, that generates the
icns file and then manually rerun CMake, this property gets filled and the icon works.