I've been developing an app for a while and I haven't had any problems running the app on the device.. now a few days ago, whenever I connect the iPhone, it plays its little "ka-chink" sound and shows up in Xcode, but after a few seconds it disconnects and reconnects with another "la-chink" and keeps doing this until I want to throw it out of the window.
Of course, it's not possible to debug on the device with the constant disconnections, so I just:
I've tried various thing to get the phone to work properly again but to no avail so far.. anybody experienced this? any solutions?
Update: cable and connector fine, no hardware trouble.
In the end removing expired certificates (current ones were already installed) solved the problem.