Hello NicholeMahle,
Thank you for the details of the issue you are experiencing with your iPhone 5. It sounds like you are seeing the message, “This cable or accessory is not certified and may not work reliably with this iPhone,” when nothing is connected to the iPhone. This could be caused by debris in the dock connector:
Some third-party cables and accessories that aren't Apple certified, or are FireWire equipped, may not charge your device properly. If you see either of the alerts below, the device may not charge. Try another cable or accessory.
- "This cable or accessory is not certified and may not work reliably with this iPhone."
- "This accessory is not supported by this device."
If either of these alerts appear and nothing is connected to the dock connector, make sure that the dock connector is free of debris.
If there are bent pins or debris, please contact Apple Support.
Find the full article here:
iPhone and iPod touch: Charging the battery
http://support.apple.com/kb/HT1476
Thank you for using Apple Support Communities.
Best,
Sheila M.