If you’ve ever had an iPhone or iPad that wouldn’t connect to iTunes, there’s a good chance it’s because of a problem with the device’s battery. Here are some tips to fix the issue:

  1. Check the battery level and make sure it’s at least 80% charged. If it isn’t, replace the battery as soon as possible.
  2. Reset your iPhone or iPad to its factory settings by going to “Settings” and selecting “General.” Then select “Reset.”
  3. Charge your device again if it has been idle for a while. This will help improve the connection between your device and iTunes.
  4. Try another cable or outlet if you’re having trouble connecting to iTunes on your computer or phone.

You plug your iPhone into your computer, ready to sync and…nothing. The little icon doesn’t show up in iTunes’ toolbar, and you’re flummoxed. Here are a few possible solutions.

RELATED: How to Never Use iTunes With Your iPhone, iPad, or iPod Touch

You can use an iPhone or iPad without ever touching iTunes, but it isn’t always easy. iTunes sucks on Windows, but it’s still useful for the occasional backup or software update when iOS is being frustrating. But there’s nothing more frustrating than when iTunes doesn’t detect your iPhone or iPad when you plug it in.

There are a myriad of things that could cause this, but we’ve seen this problem more than a few times over the years. Here are some of the most reliable fixes we’ve found.

Start with the Obvious: Restart, Update, and Try Another USB Port

Before you try anything else, it’s worth going through the usual troubleshooting tips:

Restart your iPhone by pressing both the Power and Home buttons and hold them down. (In the case of the iPhone 7, press and hole the Power button and the volume down button. ) Restart your computer as well. Make sure both Windows and iTunes are up to date. Click Start and type “Windows Update” to check for Windows updates, and head to Help > Check for Updates in iTunes to update iTunes. (You can even try reinstalling iTunes, if you’re feeling thorough. ) Try another USB cable, or another USB port on your computer. Plug it directly into your computer instead of a USB hub. You never know when you have bum hardware, and no amount of software troubleshooting can fix that problem.

With any luck, one of these simple tricks will fix the problem. But if not, read on.

Respond to the “Trust This Computer” Prompt

When you plug an iPhone or iPad into your computer for the first time, a message will pop up on your device, asking whether it should trust the computer it’s been plugged into. If you aren’t paying close attention, it’s easy to miss–and without responding to that prompt, your device won’t show up in iTunes.

Even if it isn’t the first time you plugged your device in some settings may have been reset, and you’ll need to respond to the prompt again. So check your device and see if the message has popped up. Tap “Trust” to continue.

Reset Your Location & Privacy Settings

If you ever pressed “Don’t Trust” by accident, your device won’t show up in iTunes…and the message won’t pop up again. Thakfully, there’s a way to fix this.

This is stored in the “Location & Privacy” settings in iOS. You can reset them by going to Settings > General and tapping “Reset Location & Privacy”.

Next time you plug the device in, the “Trust This Computer” prompt should appear. (Note that this may also erase a few other settings–like which iOS apps are allowed to use your location–so you’ll have to deal with those prompts again too.)

Reinstall Apple’s Windows Drivers

Other times, things can go a little wonky with Apple’s drivers, and your Windows PC won’t recognize your iOS device properly anymore–even if you press “Trust” repeatedly. In my most recent bout with this problem, the drivers were to blame, and just needed reinstalling.

Close iTunes and plug your iPhone or iPad into your computer via USB. Then, click the Start menu and search for “Device Manager”. Select the Device Manager option that pops up.

Search for your iPhone or iPad in the Device Manager–you should find it under “Portable Devices”. Right-click it and choose “Update Driver Software”.

On the next window, select “Browse My Computer for Driver Software”.

Then, click “Let Me Pick From a List of Device Drivers on My Computer”.

On the next screen, click the “Have Disk” button.

On the Install From Disk window, click the Browse button. Navigate to C:\Program Files\Common File\Apple\Mobile Device Support\Drivers\usbaapl64.inf. Double-click the usbaapl64.inf file to select it, then click OK in the Install From Disk window.

NOTE: If you’re on an older 32-bit computer, the driver may be in C:\Program Files (x86)\Common Files\Apple\Mobile Device Support\Drivers instead.

Your PC should reinstall Apple’s mobile drivers. Close the Device Manager when you’re finished and start iTunes. You should find that your device is properly recognized.