I'm getting the exact same error with Xcode 12.4
I've tried other versions like Xcode 12.1, and it also couldn't work.
Now I'm going to reinstall the macOS...
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: