This has been a continual headache for months, ever since Xcode 15 came out.
Everything is working just fine, you just made a code change, built and run it, and Xcode installs to the phone nice and quickly and runs it.
But them bamn, next time you do the same thing, Xcode displays "Installing <name of app> to <name of phone>" forever. It just never finishes.
I've had this occur numerous times every day, with different versions of Xcode, multiple different iPhones, running multiple different versions of iOS, and even with different Macs. Always the same. It'll be working just fine, then out of the blue, without changing anything, Xcode will suddenly just decide to get into this state where it just hang and during installation, and won't recover even after terminating and restarting Xcode.
Please somebody from Apple, what is going on? Is there a work around, how can it stopped from happening?
Deleting the app doesn't fix it, restarting Xcode doesn't fix it. Unplugging the usb cable doesn't fix it, Restarting the phone doesn't fix it. What will?
Wasted sooo much time with this happening every day for that several months.
I've asked this question before and was met with total silence. Must I really raise an official support ticket to get an answer to this? Surely I'm not the only one this is happening to?
And if its not "Installing <name of app> to <name of phone>" that hangs forever then its "Attaching to <Name of app> on <name of phone" that hangs forever, usually both at the same time.
(Currently running Xcode 15.2, iPhones are connected via usb).