I am using my iPhone 5 for iOS development so it is attached to computer via cable and often when I hold it and rotate it to see screen in a different orientation and I accidentally touch the cable at the neck, Xcode warns me about lost connection, and the lightning sign disappear from iPhone screen on the top right corner and I can hear this irritation charging sound.
What can be the problem? The screen is a little bit scratched.
If I would replace screen would it solve the problem?
I have bought and tested with a brand new Apple cable.