Xcode12 doesn't work with Catalina. The following message is displayed if you try to run Xcode 12.5:
You can’t use this version of the application “Xcode-beta.app” with this version of macOS.
You have macOS 10.15.7. The application requires macOS 11.0 or later.