I found a workaround for my problem - I downloaded the latest version of xcode from this page https://developer.apple.com/download/applications/, and it works well with preview. The version from AppStore still doesn't work, but that doesn't matter to me now.
Post
Replies
Boosts
Views
Activity
I have got this error after updating xcode to version 14.2
Before that I used an xcode 14.0 beta 6. Fortunately, this beta version is still working, and the preview is still working well too.