Xcode 10.1 is not officially supported on Catalina and Big Sur. I recommend installing Xcode 12.4 and checking if that fixes things.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: