I added a Camera Extension to my app, using the template in Xcode 13.3.1. codesign tells me that the app and its embedded system extension are correctly signed, their entitlements seem to be okay. But when I submit an activation request for the extension, it returns with this failure: error: Error Domain=OSSystemExtensionErrorDomain Code=9 "(null)" localized failure reason: (null) localizedDescription: The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 9.) localizedRecoverySuggestion: (null)
What could be the reason? code 9 appears to mean a "validation error", but how do I figure out what is invalid?
-
—
ssmith_c
Add a CommentQuinn, thank you for the hint. I was filtering the Console output on my app name, the culprit was fingered by sysextd a few lines further up when I turned off that filter - I didn't prefix my Mach service name with the name of the app group in my entitlement. For future reference, the error 9 is listed in SystemExtension/SystemExtensions.h, and the term to search the SDK for is "OSSystemExtensionErrorDomain"