First you should check you iOS system version whether or not match you xcode version.
I am also encounter the problems. I upgrade the iPhone system version to iOS 14.2 . The problem was fixed.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: