Question: how to fix your iphone when it says charging is not supported with this accessory?
Answer: Try the other original charging cable for your iPhone iPad.
Clean your Apple Accessory. ... 
Plug your charger in, when you get the error message hold your finger on the dismiss button and pull your charger out. ... 
Turn off the device with the Lightning plug attached and then restart it.