mac OS popup "(null) Would Like to Filter Network Content"

Hi guys,


I have a firewall project, where I used SimpleFirewall as a template. I created the project from scratch and the firewall works, but during configuration of network filter, macOS shows popup


"(null) Would Like to Filter Network Content"


In SimpleFirewallSample this message shows


"SimpleFirewall Would Like to Filter Network Content"


Obviously name of the app is missing. I've done the following:

* checked entitlements - setup correctly

* nothing missing in Info.plist (Bundle Name, Bundle Dispaly Name, etc), filterManager.localizeDescription is set.

* I went through dozens if not hundreds of build settings

* I changed window title in the MainMenu.xib to precisely match App bundle name

* I tried to set up filter configuration from App bundle instead of common framework I use (I thought perhaps NEFilterProviderConfiguration constructor or saveToPreferences() function perhaps checks which bundle calls it and then system checks code signing).

* Tried localization for Base and EN

* I verified that Filter config in System Preferences in Network uses name of our app and I checked that if I change filterManager.localizedDescription, it correctly changes in those system settings.

* you name it - I have done it


The only clue I found in sysem log is this message


default15:22:56.895864+0200MyAppSaving configuration MyApp with existing signature (null)


The only difference is that I implemented most of the firewall functionality in a framework, so that it could be reused and app bundle links to this framework. Currently I link against this framework from app bundle and system extension using "Embed & Sign". I cannot use other options, because in that case app cannot communicate with extension. Anyway I created clone of Apple's SimpleFirewall and modified it to use common framework with precise settings as in our project and that works correctly.


Nothing appears to be working and I cannot get rid of "(nul)" in the popup message in our project.


Does anybody know how from which source macOS popup loads this value?

Thanks.

Robert


I think this should be apple's bug on 10.15.7

I make 3 tests as below: Preconditions: prepare the SampleNetworkExtension.app, put it on the network shared disk, and make a new VM for macos 10.15.7 1.copy SampleNetworkExtension.app to /Applications. run /Applications/SampleNetworkExtension.app, the popup is ok 2.clean up: move /Applications/SampleNetworkExtension.app to Trash and empty Trash, reboot system. copy SampleNetworkExtension.app to /Applications/test.app/Contents/PlugIns. run /Applications/test.app/Contents/PlugIns/SampleNetworkExtension.app, the popup will be null 3.clean up: move /Applications/test.app/Contents/PlugIns/SampleNetworkExtension.app to Trash and empty Trash, reboot system. copy SampleNetworkExtension.app to /Applications/test.app/Contents/PlugIns, and copy it to /Applications also. run /Applications/Contents/PlugIns/SampleNetworkExtension.app, the popup is ok.

I do the same test on macos 11 or macos 12, that's ok. Maybe apple fixed it on macos 11

mac OS popup "(null) Would Like to Filter Network Content"
 
 
Q