Set File Icon error

I have a Set File Icon error frequently these days. The message:

[[NSWorkspace sharedWorkspace] setIcon: myImage forFile: [[sheet URL] path] options: NSExcludeQuickDrawElementsIconCreationOption];

Appname[xxx] [default] Invalid image size X: 1024 Y: 1152

My new XCode update sets the file icon as it should but displays the message 14 times. In older versions of Zcode, it never occurred to me.

Hey there!
That looks like a bug
Have you upgraded macOS as well as Xcode?