Hello,
I'm adding a camera extension to the existing application.
The problem that it crashes with the following message in the console:
Code has restricted entitlements, but the validation of its code signature failed. Unsatisfied Entitlements:
However, it crashes under macOS 11.6 only. Interestingly, it works fine on other devices running macOS 12, 13 and even 11.6.1. I haven't tried it with older macOS versions, however I doubt it's going to work with them either.
Is there a way to fix this? If you need any additional information, please let me know.
codesign -d --entitlements :- /Applications/AppName.app
<key>com.apple.security.device.camera</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.developer.system-extension.install</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>7XXXXXXX.com.example.AppName</string>
</array>
security cms -D -i /Applications/AppName.app/Contents/embedded.provisionprofile
<key>Entitlements</key>
<dict>
<key>com.apple.developer.system-extension.install</key>
<true/>
<key>com.apple.application-identifier</key>
<string>7XXXXXXX.com.example.AppName</string>
<key>keychain-access-groups</key>
<array>
<string>7XXXXXXX.*</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>7XXXXXXX</string>
</dict>