Question: how to fix error this accessory may not be supported?
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.