Cannot debug iOS 8 app extension

I am trying to debug a sample extension of an Action application introduced on Xcode 6 (6A313). Despite the fact that the application works flawlessly, I do not see NSLog messages on the debug area, nor does Xcode stop at my break points.

Things I tried:

  • I tried uninstalling Xcode 6, re-downloading it from the Mac Store, and reinstalling without success.
  • I also tried going through Debug -> Attach to Process -> By Process Identifier (PID) or Name ... but the status bar displays "Waiting for -bundle id- to start" when it is already running.
  • Tried different devices.
  • I tried to work on the simulator, but my application extension will not appear in the list of application extensions (it is also not in the "more" list).
  • I also checked this answer which did not help me.

I have run out of ideas on what to do :)

+8
ios xcode6 breakpoints ios-app-extension
source share
1 answer

When you add the extension target of the application, Xcode must add a new extension scheme (or you can create it in "Manage Schemes ..."). If this happens, you just need to change the Active Scheme, at the very left edge of the drop-down list, with which you select the device / os simulator and execute.

Selecting the extension active scheme

If you change Active Scheme to Widget, then the breakpoint and NSLog will work, at least for me.

+4
source share

All Articles