I was taking screenshots from my iPhone 12 using Xcode 14.0 using Debug > View Debugging > Take Screenshot from (my phone). I got the shutter sound, and the file was visible under Recents in Finder.
I found that this does not do anything on my current 14.1 version. I updated to 14.3 but that is the same.
My phone has developer mode on.
I got several copies of this error once when trying to take a snaphot, but not when I tried again, so it may not be relevant...
Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service