Xcode 卡在“处理符号文件”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/41211718/
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
Xcode stuck at "Processing Symbol Files"
提问by Henry
When I try to run my app on my device Xcode gets stuck on processing symbol files.
当我尝试在我的设备上运行我的应用程序时,Xcode 卡在处理符号文件上。
I restarted the machine (I'm using VirtualBox), tried a different USB port, restarted the host computer, cleaned the build folder, tried a different project, updated Xcode to 8.2, tried to use Xcode 7.3 but nothing worked. My device does show in iTunes.
我重新启动了机器(我使用的是 VirtualBox),尝试了一个不同的 USB 端口,重新启动了主机,清理了构建文件夹,尝试了一个不同的项目,将 Xcode 更新到 8.2,尝试使用 Xcode 7.3 但没有任何效果。我的设备确实显示在 iTunes 中。
I left iTunes open when I tried to run it on my iPad and then it said "Unable to copy symbol files- unable to read required data from device"
当我尝试在 iPad 上运行它时,我让 iTunes 保持打开状态,然后它说“无法复制符号文件-无法从设备读取所需的数据”
Xcode 8.2 (latest currently) and iOS 10.1
Xcode 8.2(目前最新)和 iOS 10.1
采纳答案by Phil
Today I have solved exactly the same problem. I think the main problem is in VirtualBox USB controller. Go to the settings of your virtual machine, select USB and you will see 'USB Controller 1.1 (OHCI)' by default. You have to select 'USB controller 2.0 (EHCI)'. I have: - VirtualBox: 5.1.12r112440 (Qt5.6.2) - macOS Sierra 10.12.2 with the latest updates. - XCode 8.2 - iPhone 5, iOS 10.2
今天我已经解决了完全相同的问题。我认为主要问题在于 VirtualBox USB 控制器。转到虚拟机的设置,选择 USB,默认情况下您将看到“USB Controller 1.1 (OHCI)”。您必须选择“USB 控制器 2.0 (EHCI)”。我有: - VirtualBox:5.1.12r112440 (Qt5.6.2) - 带有最新更新的 macOS Sierra 10.12.2。- XCode 8.2 - iPhone 5, iOS 10.2
Be sure that: - You have original lightning cable - You can see your iDevice in iTunes - Try to restart your MAC and iDevice
请确保: - 您有原装的避雷线 - 您可以在 iTunes 中看到您的 iDevice - 尝试重新启动您的 MAC 和 iDevice
回答by Marquavious Draggon
This happened to me as well. What I did:
这也发生在我身上。我做了什么:
Make sure all your hardware (iPhones, iPads ect..)are all up to date.
Make sure Xcode and all other software are up to their latest versions.
确保您的所有硬件(iPhone、iPad 等)都是最新的。
确保 Xcode 和所有其他软件都是最新版本。
After you have done both of those, restart your computer and try again. It willtake a while for Xcode to processes the index files for the first time, but after these steps above, it should work fine.
完成这两项操作后,重新启动计算机并重试。这将需要一段时间的Xcode对处理索引文件的第一次,但上述这些步骤后,就应该很好地工作。
回答by Vladyslav Panchenko
Try this:
尝试这个:
- Clean Project
- Remove this folder Library/Developer/Xcode/DerivedData/ModuleCache
- Find your project folder in Library/Developer/Xcode/DerivedData/ and remove
- Restart Xcode
- 清洁工程
- 删除这个文件夹 Library/Developer/Xcode/DerivedData/ModuleCache
- 在 Library/Developer/Xcode/DerivedData/ 中找到您的项目文件夹并删除
- 重启Xcode