When I connect my iPhone to my Macbook, all is okay. The device is detected and everything works correctly.
However, launching Xcode (just accessing the "Welcome to Xcode" project selection screen) causes the device to be instantly disconnected from my laptop and disappear from Finder.
When I go to Window -> Devices and Simulator, my device is not recognized anymore.
When I physically disconnect the reconnect it, it appears one second and disappears instantly.
Closing Xcode lets me reconnect the device normally.
Due to this issue, I am not able to use my physical device for development purpose.
Could you please let me know how to fix this ?
Laptop : Macbook Pro 2017 13'' - BigSur 11.2.3
Xcode : 12.4
Device : iPhone 7 - iOS 14.4.