Hello ibrahimfromregina,
Thanks for using Apple Support Communities.
I see you're getting an error that the accessory isn't supported when trying to charge your iPhone. In order to help get this issue resolved, I suggest that you run through the troubleshooting steps below.
These alerts can appear for a few reasons: Your iOS device might have a dirty or damaged charging port, your charging accessory is defective, damaged, or non Apple-certified, or your USB charger isn't designed to charge devices.
Follow these steps:
- Remove any debris from the charging port on the bottom of your device.
- Restart your iOS device.
- Try a different USB cable or charger.
- Make sure that you have the latest version of iOS.
- Contact Apple Support to set up service.
Charge your iPhone, iPad, and iPod touch
Cheers.