Cant install Xcode components

Hi all, i am setting up my MacBook Pro and cant install Xcode. I downloaded it through the app store. On click it starts up and asks me what platform I would like to develop for. (The window where you have to select When continue is clicked it asks for admin permissions then quits and starts the process over again. I tried running this

/Applications/Xcode.app/Contents/MacOS/Xcode -installComponents

in the CMD and this opens the same window but still doesnt run but now i get an error when it closes

Xcode[837:10271] [MT] IDEFirstLaunch: Cannot continue without relaunching because of already-loaded bundles: [NSBundle </Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework> (loaded)]

Specs: MacBook Pro M1 Pro macOS 14.1

Replies

Hi; Same issue; did you have the chance to fix it?