While using real Mac hardware or a Hackintosh, you may run into the USB Accessories Disabled message. If you wish to learn more about the error message, visit apple.com and then search for “HT204377” and then on click the Support link provided in the search results.
The cause could be your USB cable so check it for damages. Often if you unplug the USB cable at both ends from the computer and the device, it will solve the issue. Otherwise, the cable may need to be replaced to check the device and computer slots for debris from dust and moisture.