My iPhone's OS is iOS 14.2 and
Xcode version was 14.1 and i had this problem.
I updated Xcode to 14.2 and now it works.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: