How to connect an iphone to xcode running on an macbook pro M1?

I bought a macbook pro m1. My iphone is running ios 14.1 and xcode is version 12.1 - so compatible. I connect the iphone to the M1 with an adapter which converts to USB 3.1 and then use old iphone USB cable. Xcode cannot see the device though.

Be grateful for any help.

Chris

How to connect an iphone to xcode running on an macbook pro M1?
 
 
Q