I'm trying to debug the official network extension sample code simplefirewall. Although it has been able to run normally and pops up user pop-up windows for the specified filter conditions, there are still two warnings and errors:
[Window] Warning: Window NSWindow 0x1007315f0 ordered front from a non-active application and may order beneath the active application's windows.
[default] CGSWindowShmemCreateWithPort failed on port 0
For the first warning, I followed the method given in https://developer.apple.com/forums/thread/729496 and added windo.makeKey()
and window.orderFrontRegardless(),
but this warning didn't go away. As for the second default, I haven't been able to find the corresponding root cause and solution of the problem. I would like to ask, can anyone give me some advice?
Xcode:Version 14.3.1 (14E300c)