When my macOS app try to deactivate CameraExtension, my app's didFailWithError is called with this error.
Error Domain=OSSystemExtensionErrorDomain Code=4 "(null)"
I cannot search for error code=4 with that domain.
MyApp calls OSSystemExtensionManager.shared.submitRequest
with OSSystemExtensionRequest.deactivationRequest
I did implement these tasks.
- BundleID, MyApp: com.myapp,
- BundleID, CameraExtension: com.myapp.camera
- Added entitlement and App Groups for app and extension
- MyApp has SystemExtension capability on Xcode and provision
- MyApp is installed on /Applications/MyAppGroup/MyApp.app
- MyApp is executed by Finder
macOS is Sonoma 14.2.1 (23C71) on M1 MacBook