Running into same thing. I went to Settings -> General -> Software Update and noticed that there's an iOS 18 update ready to be installed. I'm guessing that needs to be installed before the device can be paired with Xcode.
I can't install the update until the iCloud backup is restored though so I won't know until later.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: