Error code
iOS 4013
IOS4013
System Error Code· A POSIX/system errno returned when a system call fails.
What it means
Device disconnected mid-restore — iTunes or Finder lost communication with the iPhone or iPad before the restore completed..
How to fix it
- Try a different Apple-certified USB cable.
- Plug directly into a USB port on the computer — not a hub.
- Try a different USB port on the same computer.
- If the error persists on multiple cables and ports the device may have a hardware issue — contact Apple Support.
Not affiliated with iOS. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.
More iOS codes
- 4014Same as 4013 — device disconnected during restore (alternate error number for the same hardware-communication loss).
- 1015Cannot restore to a downgraded firmware version — iTunes detected an attempt to install an older iOS than what Apple currently signs.
- 1110USB configuration or device state error during restore.
- 1394Component or IPSW validation error — iTunes encountered an error validating part of the firmware bundle.
- 14Communication error during restore — the device connection was lost and the IPSW could not be fully written.
- 1600Device not in correct recovery or DFU mode for a custom restore.
- 1601USB driver or host-side communication failure during a recovery-mode restore.
- 1602Connection interrupted at the start of a recovery-mode restore — iTunes could not complete the initial handshake.
- 1604Unknown error during recovery-mode restore — device communication failed partway through.
- 1671Software update is downloading — this code is shown while the device is in the middle of downloading its update.
- 17Device could not be restored to the selected iOS version — the firmware is no longer being signed by Apple.
- 2001USB communication error during restore — the host-side USB chipset returned an unexpected error.