Hi,
How do I integrate custom framework into XPC Mach Service and access those functions part of custom framework ?
I have created a XPC Mach service (executable) for providing services to other applications and registered it as launch agent (/Library/LaunchAgents). Service works fine with basic functionalities. I'm able to access services / protocol functions exposed by the Mach Service from another client application and able to retrieve data also from Mach service.
But for certain actions , i need to integrate this XPC Mach service with a custom framework. Integrated in the following way:
When i try to access XPC Mach service function, it doesn't return any value. when i check the XPC status using 'launchctl list' command from the terminal, it shows status code as -6 and no process ID is associated for the service. If i remove the custom framework, it works fine.
What should be the issue? how do i resolve it? can i integrate a custom framework into XPC mach service? This is a common framework used by our other apps. Any limitations???
How do I integrate custom framework into XPC Mach Service and access those functions part of custom framework ?
I have created a XPC Mach service (executable) for providing services to other applications and registered it as launch agent (/Library/LaunchAgents). Service works fine with basic functionalities. I'm able to access services / protocol functions exposed by the Mach Service from another client application and able to retrieve data also from Mach service.
But for certain actions , i need to integrate this XPC Mach service with a custom framework. Integrated in the following way:
Select XPC Mach Service executable in project settings and click on General -> Framework & Libraries
Click on + symbol and specify the custom framework from the list and click on add button.
Once it is added into project, open main.swift and import that framework and access the functions inside the framework.
When i try to access XPC Mach service function, it doesn't return any value. when i check the XPC status using 'launchctl list' command from the terminal, it shows status code as -6 and no process ID is associated for the service. If i remove the custom framework, it works fine.
What should be the issue? how do i resolve it? can i integrate a custom framework into XPC mach service? This is a common framework used by our other apps. Any limitations???