|

How To Fix iPhone Error 9 Or 4005 When Restoring (2026)

Error 9 or 4005 appears as “An unknown error occurred” when an iPhone update or restore loses its connection.

Apple says the device may disconnect during an update, or the computer may lose contact with it during a restore.

The fix is to update your computer, force restart the iPhone, and try again with Update instead of Restore.

Table of Contents

Quick answer

StepWhat to do
1Update macOS or iTunes on your computer.
2Force restart the iPhone.
3Connect it with a USB cable and choose Update, not Restore.
4Try another USB cable, then another computer.
5Contact Apple Support if the error returns.

What error 9 and 4005 mean

The message reads “An unknown error occurred” followed by the code.

Apple groups errors 9, 4005, 4013 and 4014 together because they share the same cause and the same fixes.

In every case, the connection between the iPhone and the computer broke during the update or restore.

Step 1: Update your computer

Install the latest version of macOS if you use a Mac.

On a Windows PC, install the latest version of iTunes or the Apple Devices app.

If your computer asks you to restart to finish an update, restart it and check for updates again afterward.

If iTunes is already open, quit it and reopen it before you try again.

Step 2: Force restart the iPhone

The button sequence depends on the model.

ModelHow to force restart
iPhone 8 or later, including iPhone 16 and 17Press and release Volume Up, then Volume Down. Then hold the side button until the Apple logo appears.
iPhone 7 and 7 PlusHold the side button and Volume Down together until the Apple logo appears.
iPhone 6s or earlierHold the side button and the Home button together until the Apple logo appears.

Do the first two presses quickly, one after the other.

Step 3: Connect and choose Update

  1. Connect the iPhone to the computer with a USB cable.
  2. Open the device on the computer so it shows your iPhone.
  3. When the choice appears, pick Update, not Restore.

Update reinstalls the software and keeps your personal data.

If the iPhone goes into recovery mode

If the device enters recovery mode during an update, restore it instead.

Restoring erases the iPhone, so you will set it up again from a backup once it finishes.

Our guide on putting an iPad into recovery or DFU mode shows what the recovery screen looks like on a similar device.

Step 4: Check the cable and USB port

A loose or damaged cable is a common reason for a lost connection.

Apple recommends the USB cable that came with the device, or another Apple-certified cable if you no longer have it.

Plug it into a different USB port on the computer.

Avoid keyboard ports, which often lack enough power for updating or restoring a device.

Retry after each change so you know which one helped.

Step 5: Try a different computer

Apple lists a second computer as one of the final steps for this error.

If one is available, repeat the update there with the same cable.

That rules out a problem with your own computer or its software.

Check security software and your network

Apple says third-party security software can block the connection to its servers.

If you use such software, check its settings and allow the connection.

Your computer also needs to reach Apple’s software update servers, so make sure your network is reliable.

CheckWhy it matters
Security software settingsIt may block connections to Apple’s servers
Network connectionThe computer must reach Apple’s update servers
Unlocked iPhoneApple notes a locked device cannot be updated for error 4037

Update versus restore: which to pick

Update is the safer choice because it keeps your personal data.

Restore is for cases where the iPhone is already in recovery mode, or where Update keeps failing.

Because Restore erases the device, make sure you have a backup before you choose it.

After a restore, set the iPhone up again from that backup.

Error 4013 is part of the same Apple group. Our guide on fixing iPhone restore error 4013 covers that code.

For updates that stall without a code, see what to do when an iPhone software update fails or gets stuck.

When it keeps happening

If the error returns on a different cable and a different computer, the problem may be inside the iPhone.

Software steps cannot repair a damaged connector, a failing logic board or water damage.

ResultMeaning
Works on a different cableThe first cable was faulty
Works on another computerYour computer or its software was the issue
Fails everywhereContact Apple Support for a hardware check

Repair is available through Apple Support, and AppleCare coverage may apply if you have it.

Apple’s support page for update and restore errors also offers a Get suggestions tool if you still need help.

FAQ

Will Update erase my iPhone?

No. Update reinstalls the software and keeps your personal data.

Is error 9 the same as 4005?

Apple treats them as the same kind of connection error with the same fixes.

Should I choose Restore right away?

No. Try Update first. Restore erases the device.

When should I call Apple?

Call if error 9 or 4005 still appears after all the steps above.

Sources: Apple Support: error 9, 4005, 4013 or 4014 when you restore, Apple Support: iOS update and restore errors.

Leave a Reply

Your email address will not be published. Required fields are marked *