简体   繁体   English

当我在 Xcode 中用 iPhone 调试应用程序时出现“看门狗已过期”

[英]"Watchdog has expired" when I debug app with iPhone in Xcode

From yesterday, My iphone couldnot debug any apps.从昨天开始,我的iphone无法调试任何应用程序。 In xcode, when I choose my iPhone as the debug target, and xcode build the app, link, and run into my phone, several sencond later, the xcode finish running in my iPhone.在 xcode 中,当我选择我的 iPhone 作为调试目标时,xcode 构建应用程序,链接并运行到我的手机中,几秒钟后,xcode 在我的 iPhone 中完成运行。 And the console below show "Watchdog has expired. Remote device was disconnected? Debugging session terminated."下面的控制台显示“看门狗已过期。远程设备已断开连接?调试 session 已终止。”

It is iPhone4s, iOS version is 5.0.1, and had jailbreaked, and update Cydia a few days ago.是iPhone4s,iOS 版本是5.0.1,已经越狱,前几天更新了Cydia。

It could not work on my other MBP yet.它还不能在我的其他 MBP 上工作。 How can I recover it?我怎样才能恢复它?

This is because of the bug in Cydia update and Jailbreaking.这是因为 Cydia 更新和越狱中的错误。

Hope this helps.希望这可以帮助。

Refer to this post:参考这篇文章:

App crashes with "Watchdog has expired." 应用程序崩溃并显示“看门狗已过期”。 message. 信息。 No stack trace or crash dump 没有堆栈跟踪或崩溃转储

Here is tc.这是tc。 's answer from that post那个帖子的回答

"Watchdog has expired." “看门狗过期了。” could mean anything.可能意味着什么。 The way the message is worded suggests that the "local" GDB (running on your Mac) GDB timed out waiting for data from the "remote" GDB (running on the phone).消息的措辞方式表明“本地”GDB(在您的 Mac 上运行)GDB 在等待来自“远程”GDB(在手机上运行)的数据时超时。 Alternatively, "Watchdog has expired" might be from the phone's console output shortly before it reboots.或者,“看门狗已过期”可能是在手机重启前不久从手机控制台 output 发出的。

What does it display if you disconnect the device while your app is running?如果您在应用程序运行时断开设备,它会显示什么? What if you power it off?如果你关掉它会怎样? What if you issue a hard reset (Sleep+Home for 10 seconds)?如果您发出硬重置(Sleep+Home 10 秒)怎么办?

If it's causing the device to reboot, there's something seriously wrong happening.如果它导致设备重新启动,则说明发生了严重错误。 Your app shouldn't be able to take the phone down, but sometimes something slips through (IIRC, UIImagePickerController on some version of 2.x had a problem where either your app would get killed or the phone would reboot, depending on which kicked in first).您的应用程序不应该能够关闭手机,但有时会漏掉一些东西(IIRC,某些 2.x 版本上的 UIImagePickerController 有一个问题,您的应用程序会被杀死或手机会重启,具体取决于哪个启动第一的)。 "Large set of bitmaps" sounds like it might be causing CoreAnimation (or IOSurface or whatever) to run out of video memory. “大量位图”听起来可能会导致 CoreAnimation(或 IOSurface 或其他)用完视频 memory。

I would hesitate to do drawing in a background thread unless you're very careful about thread-safety (to a first approximation, CoreAnimation is and UIKit isn't except a few functions that were made "thread-safe" in 4.0).我会犹豫是否在后台线程中进行绘图,除非您非常注意线程安全(对于第一个近似值,CoreAnimation 是并且 UIKit 不是,除了一些在 4.0 中成为“线程安全”的函数)。

Hope this helps you.希望这对你有帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iPhone应用程序的开发版本何时到期? - When will a development version of iPhone app expired? 使用iPhone应用程序进行Xcode调试既缓慢又滞后 - Xcode debug with iPhone app is slow and laggy 在我升级Xcode6后尝试在iPhone模拟器中调试时,Xcode有时会崩溃 - Xcode sometimes crashes when I try to debug in iPhone Simulator after I upgrade Xcode6 尝试在我的iPhone上运行我的应用程序进行调试时,我在XCode中收到“无法安装应用程序”错误 - I get “Can't install application” error in XCode when trying to run my application on my iPhone for debug 尝试在iPhone上调试应用程序时收到消息“已添加,修改或删除已签名的资源” - Receive message “A signed resource has been added, modified, or deleted” when trying to debug an App on iPhone 如果证书过期,我应该上传新版本的iPhone应用程序吗? - Should I upload new version of iPhone app if certificate expired? Xcode编译iPhone应用程序以进行调试而不分发-链接错误“找不到文件” - Xcode compiles iPhone app for Debug not Distribution - Linking error “file not found” 如何在Xcode中调试间歇性缓慢的iOS iPhone应用程序加载时间? - How to debug intermittent slow iOS iPhone app load times in Xcode? 如何使用Xcode 6在iPhone 4上部署和调试iOS应用 - how to deploy and debug an iOS app on iPhone 4 using Xcode 6 在调试Xcode 4 iPhone应用程序时如何在调试窗口中输入 - how to input in the debug window while debugging Xcode 4 iPhone app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM