i too faced the problem, it was due to installing big sur on pre installed xcode on the machine it was resolved by removing xcode and installing the latest xcode
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: