ForestMuffin

iPhone Error 4013: How to Fix It Without Losing Your Data

Fix It4 min read

Error 4013 doesn’t necessarily mean your iPhone is broken. As of November 2026, it means the connection between your iPhone and your computer dropped partway through an update or restore, so the job stopped. Two things matter most.

Plug the iPhone straight into the computer’s USB port, not a hub or keyboard. When you’re asked, choose Update instead of Restore, because Update keeps your personal data.

What error 4013 looks like

You’re updating or restoring your iPhone with a Mac or a Windows PC. The process stops and an error box appears. The message ends with the code 4013:

The iPhone [device name] could not be restored. An unknown error occurred (4013).

Apple says this kind of message can appear when the iPhone disconnects during an update, or when the computer loses contact with the phone during a restore. Either way, it’s a lost connection. The phone and the computer stop talking, and the process cuts off.

Apple lists 4013 on one help page with errors 9, 4005 and 4014, and gives the same last-resort advice for all four. This guide covers only 4013, so check the code on your screen before you follow it.

What causes the drop can differ from one iPhone to the next. In one user report, the iPhone did a quick reboot during a software update. That cut the update off right away, and iTunes then showed Error 4013.

Another user reported that a faulty charging port caused their boot loop and error 4013. These are single reports, so they may not explain your case.

Fix it in this order

Work down the list, easiest first. Apple’s page doesn’t give a number of attempts, and it doesn’t say how often these fixes work. So change one thing at a time and retry the update after each change. That way you can tell which change helped.

1. Plug the iPhone straight into the computer

Unplug the iPhone from any keyboard or USB hub and connect it directly to a USB port on your Mac or PC. The error usually means the connection dropped mid-update, and a direct link gives it the steadiest path.

2. Enter your passcode and trust the computer

Enter your passcode on the iPhone so the screen is open. If a message asks whether to trust this computer, tap Trust. Then try the update or restore again.

If you only try two things, make it these first two steps.

3. Update your computer’s software

On a Mac, install the newest macOS update that’s waiting for you. If your Mac uses iTunes, update iTunes to the latest version too.

On a Windows PC, check for updates to the software you use with your iPhone, then try again.

4. Force restart the iPhone

On iPhone 8 or later, do these in order:

  1. Press Volume Up and let go right away.
  2. Press Volume Down and let go right away.
  3. Hold the side button until the Apple logo shows up.

On iPhone 7 and earlier, the button combination is different. Search Apple’s support site for “force restart iPhone” and pick your model.

5. Choose Update, not Restore

This is the choice that decides whether you keep your data. When your computer offers it, click Update. Update reinstalls the iPhone’s software and leaves your personal data in place.

A decision flow showing that clicking Update keeps personal data, while a restore-only path means backing up first, restoring, and losing anything not in the backup.
Update keeps your data; a restore keeps only what’s in your backup.

Skip Restore for now. Don’t reach for it just because the update failed once.

What if the computer only offers a restore? That can happen when the iPhone is already stuck in recovery mode, or when it lands in recovery mode while an update is running. In that case, Apple’s advice is to run a restore rather than keep trying to update.

Back up first if the phone still lets you. After the restore, you set the iPhone up again and load your things back from a backup. Anything that isn’t in that backup will be gone. If something was stored only on the phone, it may be gone for good.

Treat this as a last resort.

6. Try a different cable or USB port

If the error is still there, swap in a different Apple USB cable. Next, plug into another USB port on the computer. Then run the update again.

7. Try another computer on a different network

If nothing has worked, borrow a second computer on a different network, such as one at a friend’s home or a workplace. Run the update or restore there. It’s worth trying this before you go looking for repair help.

If 4013 keeps coming back

Apple’s own help page covers this case. If you still see the error when you restore, even on another computer and network, contact Apple Support.

If 4013 returns every time and the iPhone keeps restarting in a loop, it can be a hardware fault. Contact Apple or an authorized repair provider, and don’t open the phone yourself.

Sources

This article was created using generative AI based on publicly available sources.