Xcode 13.4 does not recognise my iPad iOS 15.4.1

When I connect the iPad with my MacBook pro the iPad is not visible on the device and simulator option in Xcode. When I connect the device it just blinks and disappeared from the device and simulator option. I check the photos apps there I am able to see the device but in the Xcode, the device is not showing.

Can anyone suggest to me how to fix this?

Thanks in advance.