I’ve had corroded pins on a couple Lightning cables, always happens after the phone was in a humid environment like a steamy bathroom after a shower. Now I resort to wireless charging if there’s any hint of moisture on the phone and that has kept my connectors fresh.