I’m trying to execute privileged helper trough SMJobBless with help of SMJobKit framework, but when I try to install the service, this error is thrown Error Domain=SMJobKit.SMJError Code=4 "(null)"
And when I run function checkForProblems it throws [SMJobKit.SMJError.BadBundleCodeSigningDictionary] in source there is a comment by this line: "kSecCodeInfoPList was not a dictionary"
App is structured like Main App (sandboxed) -> XPC Service -> Privileged Helper
Code Signing is set to Mac Developer:…
and in plist I have…
Clients allowed to add and remove tool
anchor apple generic and identifier "*XPC SERVICE IDENTIFIER*" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = *DEVELOPER ID*)
Tools owned after installation
anchor apple generic and identifier "*HELPER IDENTIFIER*" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = *DEVELOPER ID*)
which is generated by SMJobBless python script
as a example I'm using Even Better Authorization Sample but without any luck yet