Simple-- Wireless charging.
The iPhone X will be charged wirelessly, so you won't need the stupid lightning port in the first place. You'll be able to charge and use headphones at the same time with this technology, so that issue is erased.
I'm assuming they will release some sort of...