iOS 8 beta 5今天视图扩展(小部件)卡在等待附加 [英] iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach

查看:245
本文介绍了iOS 8 beta 5今天视图扩展(小部件)卡在等待附加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在iOS 8中调试一个今天的视图扩展(窗口小部件),所以我在Xcode中选择Scheme下的小部件,并选择我的iPhone作为设备,并点击运行。它说在iPhone上运行今天视图,在左边的侧栏上显示等待附加。它永远在等待附加阶段,没有显示任何调试信息在我的iPhone上。但是,如果我选择模拟器作为我的设备这工作正常。在模拟器中等待附加几秒钟后,该窗口小部件活动,并显示调试信息。

I want to debug a today view extension (widget) in iOS 8, so I select the widget under "Scheme" in Xcode, and select my iPhone as the device and hit run. It says "running today-view on iPhone" and on the side bar on the left it says "Waiting to attach". It gets tuck at the "waiting to attach" phase forever and never shows me any debugging info on my iPhone. However this works fine if I select the simulator as my device. After a few seconds of "waiting to attach" in the simulator, the widget comes alive and debugging info is displayed.

有任何人遇到为什么扩展不会显示调试信息在iPhone上,但会在模拟器中吗?

Has anybody come across why an extension won't show debugging info on an iPhone but will in the simulator?

推荐答案

在模拟器中打开通知窗口时启动调试器。关闭通知窗口。停止调试器。再次启动它。 iOS8中的调试小部件非常精致。你需要以缓慢的非侵略性方式(现在)做一切。

Do not stop & start the debugger while notification windows is open in the simulator. Close the notification window. Stop the debugger. Start it again. Debugging widget in iOS8 is very delicate. You need to do everything in a slow non-agressive way (for now).

这篇关于iOS 8 beta 5今天视图扩展(小部件)卡在等待附加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆