So I tried all the above and it seems not to work still.
But I've noticed on some rare occasions on my work wifi when the cable connected to my Mac, Xcode 15 connects to my iPhone (iOS17) and I'm able to debug, run and test apps.
I'm a relatively new developer and this has slowed down progress on an app I am working on. Is this a regular yearly occurrence?