Reputation: 1099
I'm not being able to use the debugger in a UNNotificationServiceExtension.
Here's what I do when attempting to attach the debugger to the UNNotificationServiceExtension:
Does anyone know how to get the debugger to work in a UNNotificationServiceExtension?
Upvotes: 16
Views: 3137
Reputation: 1987
2 years ago, I used questioner's way to debug, it works. but recently it doesn't work. and I find another way.
then, debugger works.
Upvotes: 0
Reputation: 36427
Don't hit run on Xcode when the debugger is attached to the service extension.
Connect the debugger to the Containing app and run the app. Then attach the debugger to the service extension.
I don't know why you can't run it when the debugger is connected to the service extension. I'm guessing it has something to do with NSExtensionPointIdentifier
set to com.apple.usernotifications.service
and once the OS sees that things go to hell because only the OS should launch the service extension.
Upvotes: 2