IOS 17.2.1 —> Xcode 14.3.1

I’m designing an IOS app and I want to test the app on my iPhone which is running IOS 17.2.1, but when I try to use my iPhone in Xcode I get this error:

(Can’t make device ready for development: the developer disk image could not be mounted on this device.)

Anyone know how I can get Xcode to allow me to use my iPhone?