Error 4013 iPhone XR stuck in recovery mode

My iphone xr which was running ios 18.2 fell recently and it went black and started boot looping cause the battery was dead, when i replaced the battery and tried to restore it, it shows error 4013 all the time , it doesnt go any further than going back to the recovery mode and doesnt restore. what can i do? @Apple



[Re-Titled by Moderator]

iPhone XR, iOS 18

Posted on Jan 16, 2025 11:22 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 17, 2025 12:13 AM

See this --> If you see an error when you update or restore your iPhone, iPad or iPod - Apple Support (IN)


Or this --> iOS update and restore errors - Apple Support


Error 53 --> If you see error 53 when you update or restore your iPhone or ...


Error 9, 4005, 4013, 4014 --> If you see error 9, 4005, 4013, or 4014 when you restore your ...


Try updating iOS after each step.

  • Try to Forget the WiFi network and add it again
  • Try another WiFi network 
  • Toggle sets automatically off and then on
  • Reset your network settings
  • Force restart your device
  • Remove any beta profiles, if applicable





VPN or proxy connections might prevent your device from contacting the update servers.



Here are some things you can try:


Basic checks:

  • Make sure your iPhone is connected to a stable Wi-Fi network. A weak or intermittent connection can cause update issues.
  • Ensure your iPhone has enough storage space. The update might not be able to download if your storage is full. Go to Settings > General > [Device name] Storage and see how much space you have available. If you need to free up space, delete unnecessary apps or files.
  • Force restart your iPhone. This can clear any temporary glitches that might be causing the problem. For an iPhone 7, press and hold the Sleep/Wake button and the Volume Down button simultaneously until you see the Apple logo.
  • Sometimes, a simple restart can resolve temporary software glitches. Turn off your iPhone, wait for a few seconds, and then turn it back on.
    1. Restart the device. That's it.
    2. Still not solved --> Force restart iPhone - Apple Support



More advanced troubleshooting:


1 reply
Question marked as Top-ranking reply

Jan 17, 2025 12:13 AM in response to Tsk_Dj

See this --> If you see an error when you update or restore your iPhone, iPad or iPod - Apple Support (IN)


Or this --> iOS update and restore errors - Apple Support


Error 53 --> If you see error 53 when you update or restore your iPhone or ...


Error 9, 4005, 4013, 4014 --> If you see error 9, 4005, 4013, or 4014 when you restore your ...


Try updating iOS after each step.

  • Try to Forget the WiFi network and add it again
  • Try another WiFi network 
  • Toggle sets automatically off and then on
  • Reset your network settings
  • Force restart your device
  • Remove any beta profiles, if applicable





VPN or proxy connections might prevent your device from contacting the update servers.



Here are some things you can try:


Basic checks:

  • Make sure your iPhone is connected to a stable Wi-Fi network. A weak or intermittent connection can cause update issues.
  • Ensure your iPhone has enough storage space. The update might not be able to download if your storage is full. Go to Settings > General > [Device name] Storage and see how much space you have available. If you need to free up space, delete unnecessary apps or files.
  • Force restart your iPhone. This can clear any temporary glitches that might be causing the problem. For an iPhone 7, press and hold the Sleep/Wake button and the Volume Down button simultaneously until you see the Apple logo.
  • Sometimes, a simple restart can resolve temporary software glitches. Turn off your iPhone, wait for a few seconds, and then turn it back on.
    1. Restart the device. That's it.
    2. Still not solved --> Force restart iPhone - Apple Support



More advanced troubleshooting:


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Error 4013 iPhone XR stuck in recovery mode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.