Reputation: 1436
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
Reputation: 986
Try to use another cable or USB port - Other USB port fixed it for me
Upvotes: 69
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
Reputation: 1851
I turned my device on airplane mode, reconnected via usb and it was able to finally copy cache symbols.
Upvotes: 3
Reputation: 1700
On an old iPad
, very slow connect via USB, use connect via network
All connected up in less than 2 mins. ✅ Success
Upvotes: 0
Reputation: 419
I encountered the same problem. Rebooting my iPhone worked for me.
Upvotes: 30
Reputation: 59
For me the solution was:
Manage Run Destinations...
Hope it helps :)
Upvotes: 4
Reputation: 431
Quitting the Xcode worked for me
Upvotes: 1
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
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
Reputation: 36447
There are random solutions for this :
Please make sure that your device is unlocked
when you run app.
Reboot your device.
Clean project using cmd+shift+k.
You can also try Clean Build folder using alt+shift+cmd+k
.
Delete the content of derived data
and rebuild you app.
Quit Xcode
and re-run your app.
Solution 1 and 2 worked in my case.
Upvotes: 1
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
Reputation: 2676
This might happen also because of some usb hubs. Please try to connect your device without a usb hub.
Upvotes: 0
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
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
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
Reputation: 618
Try this:
Upvotes: 34