"SecStaticCodeCheckValidity" failed due to unable to verify the signature on the code.

Hey, the SecStaticCodeCheckValidity function is failing with error code "status=-67050". It looks like due to unable to obtains and verify the signature of the specified code object.

This API was working fine for Notarized packages but recently it started failing.

Any suggestion on this will be highly appreciable.

Error -67050 is errSecCSReqFailed, which is what you expect to get when the code doesn’t satisfy a requirement. See TN3127 Inside Code Signing: Requirements for more background on code signing requirements.

There are two requirements that might be in play here:

  • The designated requirement, embedded with the code itself

  • Any additional requirements, that you pass in to the third parameter of SecStaticCodeCheckValidity

Are you doing the latter?

Share and Enjoy

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

"SecStaticCodeCheckValidity" failed due to unable to verify the signature on the code.
 
 
Q