Printable checklist

How to Fix iPhone Error 4013, 4014, 9 and 4005 During Restore

Error 4013 means the restore dropped out while iOS was being written to the phone. 4014 fails at the verify step, and 9 and 4005 sit in the same family. The cause is usually the cable, the USB port, the host software or a truncated IPSW rather than a dead phone.

By 52runoob Editorial Team · 16 steps · Updates & Drivers · Updated November 30, 2026

Back to the guide
  1. 1. Read the Exact Number and Where It Stops

    The full message is "The iPhone could not be restored. An unknown error occurred (4013)." The number is the whole diagnosis. 4013 means the phone dropped out while the firmware image was being written. It is not a passcode problem, not an…

  2. 2. Tell 4013 Apart From 4014, 9 and 4005

    4013 and 4014 are the same failure at two points: 4013 aborts during the write, 4014 fails while verifying what was written. Error 9 and error 4005 belong to the same family and usually trace back to the same three causes. Apple documents…

  3. 3. Confirm the Computer Still Sees the Phone

    Before diagnosing 4013, confirm the host can enumerate the device at all. On a Mac, open System Information and look under USB. On Windows, open Device Manager. The phone must appear by name, not as an unknown device. If it does not…

  4. 4. Look for a USB Alert From the Host Software

    Finder and iTunes raise specific alerts when a port cannot supply enough current. Those alerts matter because they arrive before the restore and name the real problem. An alert about power means the port is the fault, not the phone.…

  5. 5. Swap to a Cable You Know Carries Data

    Charge-only cables have no data pairs. They charge fine, sync never works, and a restore handshake starves partway through, which the phone reports as 4013. Use the cable that came with a phone, or any cable you have actually transferred…

  6. 6. Move Off Hubs, Docks and Front-Panel Ports

    A restore holds a steady current draw for several minutes. Hubs, monitor docks and front-panel headers share that rail with other accessories and sag exactly when the write is busiest. Use a port soldered to the mainboard, unplug every…

  7. 7. Clean the Charging Socket

    Pocket lint compacts against the back wall of the connector and shortens contact travel. The plug still clicks, so it feels fine, but the data contacts lose contact under sustained load. Power the phone off and use a wooden toothpick at a…

  8. 8. Restart the Apple Mobile Device Service on Windows

    On Windows the restore talks to the phone through the Apple Mobile Device Service. When that service hangs, the transfer dies at a random percentage and the phone reports 4013. Restart the service, and if it refuses to start, repair the…

  9. 9. Try a Different Computer

    If the error follows the cable and the port, the host is the suspect. A second computer settles it in ten minutes. When the restore completes elsewhere, the original machine has a driver, controller or security-software problem, and you…

  10. 10. Delete the Cached IPSW and Download Again

    Finder and iTunes download a multi-gigabyte IPSW before writing anything. An interrupted download leaves a truncated file that fails at the same percentage on every attempt. Delete the cached firmware so it downloads from scratch, then…

  11. 11. Confirm the Update Server Is Reachable

    A restore contacts Apple's firmware signing server before it writes anything. If that lookup fails, some hosts report a network error and others report 4013. Switch networks, disable any DNS filter, and check whether the machine can reach…

  12. 12. Turn Off Security Software for One Attempt

    Security suites inspect traffic on the local link that Finder and iTunes use, and a filter driver can stall a multi-gigabyte transfer without logging a block. Pause real-time scanning, disconnect the VPN and retry once. This is one of the…

  13. 13. Clear the Pending Update Inside iOS

    A half-downloaded update sitting in iPhone storage can corrupt the next restore attempt. Open Settings, General, iPhone Storage and delete any pending iOS update, then reboot before reconnecting. Five minutes here resolves a surprising…

  14. 14. Charge Above 30 Percent Before the Retry

    A restore that starts on a nearly flat battery can be cut short by the power manager, and the phone reports it as a write failure. Charge to at least 30 percent and keep the cable connected for the whole restore. Apple recommends charging…

  15. 15. Retry Once After the Phone Has Cooled

    Repeated failed attempts heat the phone, and a hot pack throttles the write rate until the host times out. Let the phone sit at room temperature for half an hour, then retry from a cold start. If the restore gets further while cool, heat…

  16. 16. Recognise When 4013 Means Failing Storage

    Three cables, two computers, a fresh IPSW and a restore that still stops at the same percentage is a hardware answer. That pattern means the flash cannot hold the image, and no amount of retrying changes it. Back up whatever still boots…