Bruno Cardoso
Bruno Cardoso

Reputation: 403

Can't debug iOS 8 App Extension

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 ran out of ideas on what to do :)

Upvotes: 8

Views: 2400

Answers (1)

Apple.CDM
Apple.CDM

Reputation: 81

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.

Upvotes: 4

Related Questions