Unplug all USB accessories from your computer except for your device.
If you can't unlock your device because you forgot your passcode, find out what to do. If you see a Trust this Computer alert, unlock your device and tap Trust.If you're using iTunes, make sure you have the latest version. Check that you have the latest software on your Mac or Windows PC.