8

I'm trying to debug the sample Action App Extension provided on Xcode 6 (6A313). Even though the app runs flawlessly, I can't see any NSLog messages on the Debug Area neither Xcode will stop on my break points.

Things I've tried:

  • I've tried uninstalling Xcode 6, re-downloading it from the Mac Store and installing again with no success.
  • I've also tried to go through Debug -> Attach to Process -> By Process Identifier (PID) or Name... but the Status Bar shows "Waiting for -bundle id- to launch" when it is already running.
  • Tried different devices.
  • Tried running on the simulator, but my App Extension won't show on the App Extensions list (it is not present in the "more" list also).
  • I've checked this answer also, which didn't help me.

I've ran out of ideas on what to do :)

Community
  • 1
  • 1
Bruno Cardoso
  • 403
  • 3
  • 13

1 Answers1

4

When you added the Application Extension target Xcode should have added also a new Scheme for the Extension (or you can create one in 'Manage Schemes...'). If this happened you just have to change the Active Scheme, on the very left of the drop down with which you choose the device/os of the simulator, and run.

Selecting the extension active scheme

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

Apple.CDM
  • 71
  • 4
  • 2
    Thanks for your answer, but yes, I'm definetely running the App Extesion scheme. I tried removing the scheme and manually creating another one, again with no luck. – Bruno Cardoso Oct 17 '14 at 12:50
  • We went back to the app extension after a while and with current version of Xcode (7.2) we didn't have any problems debugging and logging – Apple.CDM Feb 19 '16 at 18:10