I am struggling to embed an XPC service into a system extension (com.apple.developer.endpoint-security.client and a NetworkExtension). The XPC service is being embedded into the system extension bundle as part of a Framework which contains the XPC service (Embed Without Signing in XCode). The path to the XPC service executable file in the system extension bundle is Contents/Frameworks/SomeFramework.framework/Versions/A/XPCServices/SomeXPCService.xpc/Contents/MacOS/SomeXPCService
When the system extension is being registered and copied into /Library/SystemExtensions folder, the executable for XPC service is being stripped of the original executable permissions(-rwx-xr-x). The permissions for the executable are being set to -rw-r--r--, instead of original -rwx-xr-x . As a result launchd fails to start the XPC service and logs an appropriate error in the system log.
What is the correct procedure for embedding an XPC service into a system extension bundle?
The system is macOS 10.15.4 . I didn't check with other macOS versions.
When the system extension is being registered and copied into /Library/SystemExtensions folder, the executable for XPC service is being stripped of the original executable permissions(-rwx-xr-x). The permissions for the executable are being set to -rw-r--r--, instead of original -rwx-xr-x . As a result launchd fails to start the XPC service and logs an appropriate error in the system log.
What is the correct procedure for embedding an XPC service into a system extension bundle?
The system is macOS 10.15.4 . I didn't check with other macOS versions.