Getting error while debugging Notification Extension: Failure Reason: tried to attach to process already being debugged
Could not attach to pid : "15968" Domain: IDEDebugSessionErromDomain
Restarting device and pc will solve the problem. For me that worked good luck.