I get "Failed to prepare device for development." on my iPhone for development

When I go to Windows->"Devices and Simulators".

I get:

"Failed to prepare device for development."

"If you are certain that Xcode supports development on this device, try disconnecting and reconnecting the device."

I, of course, tried disconnecting and reconnecting, with no change.

My iPhone is iPhone 12 Pro with 14.3 (18C66)

My xCode is Version 12.3 (12C33)




Following link is the descriptive solution for this problem

https://stackoverflow.com/a/72143704/15716725

Restarting solved for me - iOS 15.5, xCode 13.4.1

iPhone restart didn't help but switching off VPN on my device did

I get "Failed to prepare device for development." on my iPhone for development
 
 
Q