Can't open Xcode

When I try to launch Xcode I a dialog saying: You can’t open the application “Xcode” because it is being updated. The dialog has a small "?" button which opens a helpful blank window.

In the App Store App when I open the Xcode page the Download/Open/Update button is replaced with a rotating endless progress bar which goes on, well, endlessly.

I have tried restarting, closing the store_downloadd process

MacBook Pro (13-inch, M1, 2020) Mac OSX 12.3 The version that is trying to update is 13.3

I tried to run Xcode from command line (Xcode/Contents/MacOS/Xcode) and it works fine.

So I deinstall and reinstall Xcode 14.2 and afterwards it works just fine.

Can't open Xcode
 
 
Q