I wrote a very simple Safari Content Blocker and wrapper app. However, I do not understand how to debug it. I tried to launch a wrapper application and then launch Safari, as in the iOS simulator. However, I do not see my content blocker being applied. (And, yes, I turned it on Settings->Safari). I have added methods NSLog()to my method beginRequest(with context: NSExtensionContext), but I do not see them recorded in the logs. I tried to add breakpoints in this method, and Xcode never stops at them. So, it’s clear to me that either my content blocker is not installing properly, or I am not debugging it properly.
Can someone give me some guidance on how to debug this extension?
source
share