Avoid Charging Your iPhone with Your MacBook
Plugging in your iPhone to your MacBook to give it a quick charge might seem smart, but it’s actually damaging your MacBook’s battery. It’s best to avoid connecting your iPhone to your MacBook to recharge it. Instead, use your iPhone’s regular charger.
If you absolutely have to use your MacBook to charge your iPhone, make sure to keep your MacBook connected to a power source as long as your iPhone’s charging. This will help prevent damaging your battery.