Wireless
Why this works:
There are a lot of moving parts when you connect an iPhone to another device. iPhones, computers, and Lightning cables all have very complicated designs.
If you’re experiencing a connection error between your iPhone and your computer, there are plenty of components that could cause a malfunction. Trying to plug your iPhone into a different USB port, or a new computer altogether, might shed some light on the problem.