I am recently learning Apple's system extension using MacOS and downloaded a sample from apple's official document. https://developer.apple.com/documentation/networkextension/filtering_network_traffic, which use to filter incoming connections. An video talking about it can be found here, though a bit old.
Although I can build the sample code successfully using xcode, but the system extension is actually not started. (I have added log to verify this), specifically the main.swift
under SimpleFirewallExtension folder is not loaded
I have read this article - https://www.avanderlee.com/debugging/network-extension-debugging-macos, saying if the main.swift
in not loaded, there must some configuration issue in the project setup. But the project is downloaded from Apple's sample. Anyone has encounter this before?
I am using macOS Ventura version 13.1.1, Xcode version 14.3.
Yes, I need to change quite a bit in order to make the app to run successfully. But still, the network extension seems is not running? I have also captured the system log when the app is running. Can you kindly help to see any abnormal thing happen? https://drive.google.com/file/d/1jUsGxEAFrLpjI2JxSCsBYZWAnnR-aIMM/view