Xcode stuck on copying cache files from device tvOS

Jay Savsani picture Jay Savsani · Jun 20, 2020 · Viewed 7.9k times · Source

I've been trying to connect my Apple TV with Xcode and it got stuck on copying cache files from device. It was connecting before as usual but suddenly it stopped.

Version Information

Apple TV : tvOS 13.4.6(17L570)
Xcode : 11.5 (11E608c)
MacOS: 10.15.4 (19E287)

What I've tried so far?

  • Clean build folder and rebuild
  • Remove derived data
  • Pairing and unpairing Apple TV thousand times
  • Updated MacOS to latest version
  • Reset Apple TV Couple of times
  • Uninstall / Install Xcode again

APP is busy: Copying cache files from device
Xcode will continue when APP is finished.

This is where it's stucked

Answer

leanne picture leanne · Sep 8, 2020

Had this issue with iPhone SE, rather than AppleTV, and found only this question in my searches.

Ended up that I simply had to wait (very impatiently) with Xcode active on my Mac screen, and keeping the iPhone awake/unlocked, for it to finish. Felt like forever, but it was less than 30 minutes in the end.

It seemed to stop the process if I moved off of Xcode to work on something else, or if the iPhone screen locked. So, keeping Xcode as the active app and keeping the iPhone awake seemed to allow the process to finally finish.