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 support.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 USB cable may need to be replaced so check the device and USB slots for debris for dust and moisture that can hamper the connection.