iPhone Cable or Accessory Not Certified
As you can see in several threads like the one pointed by @Ohnomycoco, this is not a software problem but a hardware problem. 

Lighting a "smart" connector with a microchip build-in the cables head. It's most likely due to a damage cable, so you'll have to replace it. 

Also - be sure to test since in many cases it's the iOS device that needs repair and not the cable:


Only my cable can recharge my iPhone