The SDK contains the file /snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.so which points to libpolkit-gobject-1.so.0.0.0 which is not in this snap. This file is in /snap/core22/current/usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.so.0.0.0. Since the file is missing a program (e.g. gnome-software) will instead try to link against the static library.
I suspect the symlink needs to point to the version in the core22 snap or be removed.
The SDK contains the file
/snap/gnome-42-2204-sdk/current/usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.so
which points tolibpolkit-gobject-1.so.0.0.0
which is not in this snap. This file is in/snap/core22/current/usr/lib/x86_64-linux-gnu/libpolkit-gobject-1.so.0.0.0
. Since the file is missing a program (e.g. gnome-software) will instead try to link against the static library.I suspect the symlink needs to point to the version in the core22 snap or be removed.