We’re using an Enhanced Security helper extension with AppExtensionProcess and XPCSession to isolate native zero-knowledge proof generation from wallet and signing code.
On an iPhone 15 Pro running iOS 26.6.2 (23G90), the helper terminates with:
EXC_RESOURCE
RESOURCE_TYPE_MEMORY: high watermark memory limit exceeded
(limit=35 MB)
Terminated due to memory issue
Our current prover requires substantially more memory: its public proving key is approximately 402 MiB, and its witness workspace alone is approximately 69 MiB. The same proof engine has completed successfully in a standalone iOS app process. The helper currently processes only synthetic test inputs.
We want to preserve the helper’s sandbox and Enhanced Security protections and use a configuration supported for App Store distribution.
- Is there a supported way to increase the memory limit for this specific helper extension type?
- Does com.apple.developer.kernel.increased-memory-limit apply to Enhanced Security helper extensions? If so, what provisioning, target configuration, and device/OS requirements apply?
Xcode’s cached capability metadata lists only com.apple.product-type.application for this entitlement.
Yeah, I figured you might bump into something like that.
IMO it’s not worth arguing with Xcode here. If it’s gone out of its way to block this, that’s a clear signal that it’s not gonna work.
And, yeah, it was always a long shot. I’ve previously dug into this — for the purposes of updating this thread — and my understanding from there is that the system’s memory limit enforcement for extensions is very different than that for apps.
Yes. See Bug Reporting: How and Why? for general advice on that front. And please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"