![](/img/trans.png)
[英]Lost connection to the debugger on "iPhone" Launching App Xcode 11.3.1
[英]Lost connection to the debugger on iPhone simulator running Big sur11.4
我在 Big sur 11.4 上运行我的应用程序时遇到了这个问题。运行该应用程序时,我收到“构建成功”消息,但在应用程序自动停止后显示一条弹出消息,例如
Lost connection to the debugger on “iPhone 12”.
Domain: IDEDebugSessionErrorDomain
Code: 4
Recovery Suggestion: Restore the connection to “iPhone 12” and run “APP_TARGET_NAME” again, or if “APP_TARGET_NAME” is still running, you can attach to it by selecting Debug > Attach to Process > APP_TARGET_NAME.
--
System Information
macOS Version 11.4
Xcode 12.1 (17222)
请帮助我如何解决问题。
这通常发生在具有大量依赖项的应用程序中,因此它们需要很长时间才能启动,从而使调试器中止并超时。
临时解决方案是:
vim ~/.lldbinit
。settings set plugin.process.gdb-remote.packet-timeout 300
。我已经尝试过这种方式,它就像取消选中调试可执行选项一样工作。
选择Edit Schema->Info->uncheck Debug executable
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.