CoreMedia Camera Extension fails to activate

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?

Answered by DTS Engineer in 712460022

how do I figure out what is invalid?

Error 9 is OSSystemExtensionErrorValidationFailed. If you search DevForums for that you’ll find a few threads where I’ve discussed potential causes.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

how do I figure out what is invalid?

Error 9 is OSSystemExtensionErrorValidationFailed. If you search DevForums for that you’ll find a few threads where I’ve discussed potential causes.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Quinn, 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"

CoreMedia Camera Extension fails to activate
 
 
Q