Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode stuck on copying cache files from device tvOS

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

like image 921
Jay Savsani Avatar asked Jun 20 '20 14:06

Jay Savsani


People also ask

How to clear Xcode cache manually?

How to clear Xcode cache manually #1. Clean the build #2. Clean out the build folder #3. Reset Simulator content and settings #4. Delete derived data #5. iOS device support #6. Use Terminal

How to fix Xcode crashing and crashing?

Clean the build Tip: If you’re trying to fix a problem with Xcode crashing, it’s worth cleaning the project build first. This will get rid of the current build and create a new one next time you run the code. 2. How to clear the Xcode cache with CleanMyMac Remember we said that there was an easier way to delete cache in Xcode?

How do I clean up my Xcode build folder?

We'll be using the free version of this program: Download the free edition of the app and launch it. Go to the System Junk tab on the left. Click Scan. Click Review Details and navigate to the Xcode junk tab. Click Remove. That's it! 3. Clean out the build folder To clean out the build folder, and get rid of cache files, do the following:

Can I delete the iOS Device Support folder in Xcode?

For every iOS version you test using the simulator, a new folder is created inside this folder. That can build up over time. You can delete all these subfolders (though, not the iOS device support folder itself) and Xcode will create a new one the next time you run the simulator.


2 Answers

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.

like image 200
leanne Avatar answered Sep 23 '22 09:09

leanne


Sometimes when you open the devices window you can see the error results the hang issue. in my case it was that Xcode version was too low than the devices version.

Closed Xcode updated it and it's fixed now.

like image 41
Kashkashio Avatar answered Sep 21 '22 09:09

Kashkashio