[英]"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.