Do you see a popup saying, "This accessory may not be supported" when you insert a charging cable, dongle, flash drive, two-factor authentication key, or other accessories into your iPhone or iPad's Lightning or USB-C port?
This tutorial tells you why it happens and how to fix the issue.