heiko
heiko

Reputation: 1436

Xcode stuck with "Copying symbol files"

After updating to the latest version (6.1 b2), Xcode does not compile and run projects on the device anymore and shows "Copying symbol files" for hours. Any ideas or possible workarounds for this problem?

Upvotes: 44

Views: 69522

Answers (17)

r00tandy
r00tandy

Reputation: 986

Try to use another cable or USB port - Other USB port fixed it for me

Upvotes: 69

Vince Varga
Vince Varga

Reputation: 6918

As ridiculous as it sounds, check if your phone is even connected to the computer with a physical cable.

For some reason, my iPhone shows up in Xcode, but it wasn't physically connected to the computer via a cable, and I didn't get any warnings, the percentage simply stayed at 0% for a long time.

Upvotes: 0

Horatio
Horatio

Reputation: 1851

I turned my device on airplane mode, reconnected via usb and it was able to finally copy cache symbols.

Upvotes: 3

dklt
dklt

Reputation: 1700

On an old iPad, very slow connect via USB, use connect via network

  1. firstly xcode plug in device + trust device
  2. XCode select, Connect via Network
  3. reboot device
  4. restart XCode, select build to device
  5. Xcode resume download symbols over WIFI

All connected up in less than 2 mins. ✅ Success

Upvotes: 0

qfujiwara
qfujiwara

Reputation: 419

I encountered the same problem. Rebooting my iPhone worked for me.

Upvotes: 30

CURRO
CURRO

Reputation: 59

For me the solution was:

  1. Clear the project
  2. Disconnect WiFi from Mac
  3. Connect the iPhone via USB
  4. Click on the iPhone name on the top bar and click on Manage Run Destinations...
  5. And click on the device on the left, it start the copy process but much faster, in seconds is completed

Hope it helps :)

Upvotes: 4

Anvesh Tokala
Anvesh Tokala

Reputation: 431

Quitting the Xcode worked for me

  1. Disconnect your iOS device
  2. Quit the Xcode
  3. Re-open the Xcode
  4. Connect the device
  5. It will start copying symbol

Upvotes: 1

goelectric
goelectric

Reputation: 386

After upgrading an iPhone to ios17.0.3 i hit this problem. Rebooted my Mac and iPhone and it went away. Xcode connected and ran a debug session within a few seconds (briefly showing "Preparing iPhone......").

Upvotes: 0

Werner Altewischer
Werner Altewischer

Reputation: 10466

Delete the folder:

~/Library/Developer/Xcode/iOS DeviceSupport/<device's iOS version>

Then restart the device and restart xcode.

Apparently when the import symbol got stuck half way through it will never finish anymore, deleting the folder above should ensure the process restarts.

Upvotes: 1

Jayprakash Dubey
Jayprakash Dubey

Reputation: 36447

There are random solutions for this :

  1. Please make sure that your device is unlocked when you run app.

  2. Reboot your device.

  3. Clean project using cmd+shift+k. You can also try Clean Build folder using alt+shift+cmd+k.

  4. Delete the content of derived data and rebuild you app.

  5. Quit Xcode and re-run your app.

Solution 1 and 2 worked in my case.

Upvotes: 1

Anton Tropashko
Anton Tropashko

Reputation: 5806

reinstalling Xcode 7.2 seems to have helped it has progressed past the "copying symbol files" and showed a blue progress bar next to expanded "exporting symbol files" (restarting Xcode and devices did not, replugging power to usb hub did not, plugging to the mac directly bypassing usb hub did not : it was stuck for good )

Upvotes: -1

birdcage
birdcage

Reputation: 2676

This might happen also because of some usb hubs. Please try to connect your device without a usb hub.

Upvotes: 0

hbk
hbk

Reputation: 11184

Also you can try just to reboot your device - helps for me.

Upvotes: 2

KTPatel
KTPatel

Reputation: 1310

By restarting my iPad(iOS device) resolve the issue. To cop with exc_bad_access error, I have enabled zombie objects in Xcode from menu -> product -> scheme -> edit scheme -> run -> diagnostics . And after that such issue started. I have disabled it and restart my iPad and eventually it will work. I hope restarting iOS device will resolve your issue too.

Upvotes: 1

Sitric
Sitric

Reputation: 685

In my case, "Rebooting Xcode" & ensuring my iPhone was unlocked did the trick.

It appears that my Symbols file download began previously (as the Symbols directory for iOS 7.1.2 was in the expected location in ~/Library/Developer/Xcode/iOS DeviceSupport/), but did not complete, & thus sometimes was "sticking" and other times completing but showing my iPhone as unavailable.

When I restarted Xcode, I ensured that I already had the iPhone unlocked & then instead of just getting the "Copying symbol files" message, I also got a "Processing symbol files" message, after which my iPhone was available to run the app.

Upvotes: 2

Vette
Vette

Reputation: 541

I just spent the last several hours troubleshooting this issue on my device. I am running a virtual version of Mavericks on VBox. For me, the problem was resolved by installing Oracle VM Virtualbox Extension Pack. There was a problem with VBox fully recognizing the USB. It would recognize in iTunes, but not in XCode. This may be helpful for anyone running XCode on a virtual machine

Upvotes: 6

Bogdan Matveev
Bogdan Matveev

Reputation: 618

Try this:

  1. Clean Project
  2. Option + Product -> Clean Build Folder
  3. Remove this folder Library/Developer/Xcode/DerivedData/ModuleCache
  4. Find your project folder in Library/Developer/Xcode/DerivedData/ and remove
  5. Restart Xcode

Upvotes: 34

Related Questions