We’re building an offline document converter for Apple silicon with a minimum deployment target of macOS 14. The user selects a document in the main app. A bundled native worker should be able to process that job’s input and output, and should have no access to other jobs’ saved state. Two conversions can run at the same time.
We tested an embedded XPC service with an App Sandbox entitlement and a bundle identifier separate from the client’s. On macOS 14.0 and 15.7.7, two concurrent clients and a third client started after they exited each received a different service PID. Foundation returned the same default Application Support location for all three service instances on each OS. The client had a different location. The sample queries each process’s own location and uses no customer documents.
Apple’s XPC documentation describes the service process lifetime. Is there a public API available to a sandboxed Mac App Store app on Sonoma that gives a native worker storage access scoped to a single job, including concurrent jobs, and retires that access after the worker crashes? If so, which API or entitlement provides that guarantee, and how can the broker tell that the job has ended? If an embedded XPC service with a fixed identifier is unsuitable, is there a supported on-device architecture for this use case?
Environment: Apple silicon, macOS 14.0 (23A344) and 15.7.7 (24G720). We can provide a small source-only Xcode project.
1
0
48