1. Update the OS system
Updated ignore this step
2. Download Xcode 15 beta 2
Xcode 15
Xcode 15 lets you develop, test, and distribute apps for all Apple platforms. Advance app coding and design faster with enhanced code completion, interactive previews, and real-time animations. Take advantage of Git staging to directly improve your next commit without leaving your code interface. You can also explore and diagnose test results with redesigned test reports and its video recording capabilities, and start seamlessly deploying your apps to TestFlight and the App Store from Xcode Cloud. Creating great apps has never been easier.
Xcode 15 beta 2 compiler xid download link:
Xcode 15 beta 2:
https://download.developer.apple.com/Developer_Tools/Xcode_15_beta_2/Xcode_15_beta_2.xip
Xcode 15 beta does not support vision os, only Xcode 15 beta 2 supports it