@thomasfuchs You really want to use Xcodes.app to update Xcode... https://github.com/RobotsAndPencils/XcodesApp
GitHub - RobotsAndPencils/XcodesApp: The easiest way to install and switch between multiple versions of Xcode - with a mouse click.

The easiest way to install and switch between multiple versions of Xcode - with a mouse click. - GitHub - RobotsAndPencils/XcodesApp: The easiest way to install and switch between multiple version...

GitHub