问题描述
好吧,不知道这是怎么回事,但根据我从其他问题中了解的内容( XPC连接在iOS 9的Xcode 7中中断了),XPC连接中断意味着出现情节提要问题.按照类似的答案,我将情节提要板作为源代码打开,并寻找重复的
Ok, have no idea what is going on here but from what I understand from other questions(XPC connection interrupted in Xcode 7 for iOS 9) , XPC connection interrupted means theres a storyboard problem. Per a similar answer I opened the storyboard as source code and looked for repeated
<keycommand>
标签,但没有任何标签.由于发生了某些变化,我不得不从另一个项目复制并粘贴一个故事板,我相信这是造成了这种情况.我在这里有什么选择?是什么原因造成的,因为我看不到任何奇怪的标签?
tags, but there aren't any. I had to copy and paste a storyboard from another project since something changed, and I believe this caused it. What are my options here? What could be causing this freeze since there aren't any weird tags that I can see?
推荐答案
相同的问题,在(SwiftUI)文本字段中点击时出现XPC错误.不同的解决方案:
Same problem, getting the XPC error when tapping in a (SwiftUI) Text Field. Different solution:
模拟器>设备>删除所有内容和设置
如此处所述,
要使其正常工作,我已经重新启动了模拟器.在模拟器菜单中,硬件>删除所有内容和设置
To get it to work I have restarted the simulator. In the simulator menu, Hardware > Erase All Content And Settings
现在,当我点击UITextField时,将显示键盘,并且不会出现"XPC连接中断"的提示.错误了.一切正常.
Now when I tap in a UITextField, the keyboard shows up and I don't get the "XPC connection interrupted" error anymore. Everything works fine.
由于没有崩溃报告,只有一个行的"XPC连接中断",因此该错误令人难以置信.然后该应用程序冻结.而且,使事情变得复杂的是,很可能是从一些截然不同的原因中得到了这个错误-各种讨论都涉及VPN,蓝牙和线程生成的情况.当然-墨菲定律-在实现了完全无关的东西后,我开始出现错误,但是这使我无法对线程和程序进行故障排除.核心数据问题,无济于事.
This error was incredibly frustrating because there is no crash report, just a one-line "XPC connection interrupted" and the app freezes. And, to complicate things, it's apparently possible to get this error from some wildly differing causes -- various discussions have cases of VPN's, Bluetooth, and threading generating this. And of course -- Murphy's law -- I started getting the error after having implemented something utterly unrelated, but which has me troubleshooting threading & Core Data issues, all to no avail.
希望这可以帮助其他人快速解决问题.
Hopefully this can help somebody else with the quick fix.
这篇关于Swift:XPC连接中断并且应用程序冻结了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!