If it continues to appear, check the connectors on the accessory and your device for damage or debris. If necessary, gently remove the debris and clean the connectors on your device. If you see this alert and don't have any accessories connected, contact Apple Support.