Does setAlternateIconName work in mac Catalyst?

I'm trying to change app icon on Dock in macOS from my app. But couldn't get to work. The setAlternateIconName works fine in iOS simulator, but when I run in on my mac (Catalyst) I got this error: The requested operation couldn’t be completed because the feature is not supported.

Apple Doc - https://developer.apple.com/documentation/uikit/uiapplication/2806818-setalternateiconname

Thank you

Did you find a solution? I am facing the same issue

Does setAlternateIconName work in mac Catalyst?
 
 
Q