We are evaluating a signed macOS launcher app with an embedded XPC service. The service would own a VZVirtualMachine. Before permitting VM startup, the launcher must bind the admitted job to the actual service instance and establish any required termination authority.
We need clarification on the following:
Is there a public, supported mechanism for the containing app to terminate that specific service instance if it becomes unresponsive, including before its first application-level reply?
If so, what API, signing, sandbox, entitlement, and authorization conditions apply? How can the termination target remain bound to that instance despite PID reuse or service regeneration?
Is transfer of a task-control right from the service to the launcher, followed by task_terminate, supported for this purpose? If it requires the service to respond first, is there a supported alternative for a pre-reply hang?
What supported observation confirms termination of that same process instance, separately from acceptance of a termination request?
What lifecycle behavior applies if the containing launcher itself terminates unexpectedly?
We understand from threads 848542 and 850709 that Virtualization is expected to reclaim a guest after its owner exits, but provides neither a teardown timeline guarantee nor a successor-process guest-completion handle. We are not requesting such a guarantee or treating service exit as proof of completed VM reclamation.
Please identify applicable documentation and any platform-version restrictions.
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags:
XPC
Virtualization
macOS
App Sandbox
2
0
101