Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 beta 5 Today view extension (widget) stuck at Waiting to Attach

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.

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

like image 476
Jackson Avatar asked Aug 20 '14 05:08

Jackson


2 Answers

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).

like image 65
frankish Avatar answered Oct 21 '22 11:10

frankish


  1. Edit the extension scheme and make sure that under Run, the Executable option is set to Ask on Launch.
  2. Run the extension scheme.
  3. From the list, select the Today executable.
  4. It should launch the Today app and your extension should be attached to the debugger now.
like image 40
FernandoEscher Avatar answered Oct 21 '22 09:10

FernandoEscher