79439715

Date: 2025-02-14 14:46:06
Score: 1.5
Natty:
Report link

Thank you @Marek-h for your suggestion. Using NSWorkspace.shared.setIcon(image, forFile: bundle.path, options: []) has the same effect, only works temporarily while the app is opened.

Seems like the reason the icon keeps reverting back is because I'm running a signed app. MacOS's code signing and app sandboxing prevent permanent modifications to the app bundle, which is what I'm trying to do when setting the icon.

Seems like the only way to do this for now will be to distribute the app from outside the App Store.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Marek-h
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Random player