You need to use Xcode 13 to run/debug your project on an iPhone running iOS 15. To use Xcode 12 the phone has to be running iOS 14 or earlier.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: