ios XCode 坚持“复制符号文件”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25915846/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 02:34:29  来源:igfitidea点击:

XCode stuck with "Copying symbol files"

iosxcode

提问by heiko

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 problems?

更新到最新版本 (6.1 b2) 后,Xcode 不再在设备上编译和运行项目,并显示“复制符号文件”数小时。这个问题的任何想法或可能的解决方法?

回答by r00tandy

Try to use another cable or USB port - Other usb port fixed it for me and got the idea while finding this twitter post: [Tweet Gone]

尝试使用另一条电缆或 USB 端口 - 其他 USB 端口为我修复了它,并在找到此 twitter 帖子时得到了这个想法:[推特消失]

回答by qfujiwara

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

我遇到了同样的问题。“重新启动我的 iPhone”对我有用。

回答by Bogdan Matveev

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
  1. 清洁工程
  2. 选项 + 产品 -> 清理构建文件夹
  3. 删除这个文件夹 Library/Developer/Xcode/DerivedData/ModuleCache
  4. 在 Library/Developer/Xcode/DerivedData/ 中找到您的项目文件夹并删除
  5. 重启Xcode

回答by Vette

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

我刚刚花了几个小时在我的设备上解决这个问题。我在 VBox 上运行虚拟版本的 Mavericks。对我来说,问题是通过安装 Oracle VM Virtualbox Extension Pack 解决的。VBox 完全识别 USB 存在问题。它会在 iTunes 中识别,但不能在 XCode 中识别。这可能对在虚拟机上运行 XCode 的任何人都有帮助

回答by gbk

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

您也可以尝试重新启动您的设备 - 对我有帮助。

回答by Sitric

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

就我而言,“重新启动 Xcode”并确保我的 iPhone 已解锁就可以解决问题。

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.

看来我的符号文件下载之前就开始了(因为 iOS 7.1.2 的符号目录位于 ~/Library/Developer/Xcode/iOS DeviceSupport/ 中的预期位置),但没有完成,因此有时会“卡住”其他时间完成但显示我的 iPhone 不可用。

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.

当我重新启动 Xcode 时,我确保我已经解锁了 iPhone,然后我不仅收到了“正在复制符号文件”的消息,还收到了一条“正在处理符号文件”的消息,之后我的 iPhone 就可以运行该应用程序了。

回答by Jayprakash Dubey

There are random solutions for this :

对此有随机解决方案:

  1. Please make sure that your device is unlockedwhen 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 dataand rebuild you app.

  5. Quit Xcodeand re-run your app.

  1. 请确保您device is unlocked在运行应用程序时。

  2. Reboot your device.

  3. 使用 Clean 项目cmd+shift+k.您还可以尝试使用 Clean Build 文件夹alt+shift+cmd+k

  4. Delete the content of derived data并重建你的应用程序。

  5. Quit Xcode并重新运行您的应用程序。

Solution 1 and 2 worked in my case.

解决方案 1 和 2 在我的情况下有效。

回答by Werner Altewischer

Delete the folder:

删除文件夹:

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

Then restart the device and restart xcode.

然后重启设备并重启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.

显然,当导入符号中途卡住时,它将永远无法完成,删除上面的文件夹应确保进程重新启动。

回答by KTPATEL

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.

通过重新启动我的 iPad(iOS 设备)来解决这个问题。为了解决 exc_bad_access 错误,我从菜单 -> 产品 -> 方案 -> 编辑方案 -> 运行 -> 诊断启用了 Xcode 中的僵尸对象。在那之后,这样的问题开始了。我已经禁用它并重新启动我的 iPad,最终它会工作。我希望重新启动 iOS 设备也能解决您的问题。

回答by birdcage

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

这也可能因为某些 USB 集线器而发生。请尝试在没有 USB 集线器的情况下连接您的设备。