I don't know for sure if it will help your case.
But I was getting the same error because I still had Xcode 11.6 selected.
So I went to Xcode>Preferences and under Locations I selected Xcode 12 at the Command Line Tools option.
After that I could launch the app without any issue.
Hope this helps somebody.