Code Signing Services Result Codes
Recognize result codes specific to the code signing services API.
Discussion
Use the SecCopyErrorMessageString(_:_:) function to obtain a human readable string corresponding to these status codes.
The functions of the Code Signing Services API may also return the general codes listed in Security Framework Result Codes. In particular, you might expect to encounter errSecSuccess, errSecUnimplemented, errSecParam, and errSecAllocate.
Topics
Code-signing format result codes
errSecCSAmbiguousBundleFormaterrSecCSBadBundleFormaterrSecCSBadDictionaryFormaterrSecCSBadDiskImageFormaterrSecCSBadObjectFormat
Code-signing database issue result codes
Code-signing host protocol issue result codes
errSecCSHostProtocolContradictionerrSecCSHostProtocolDedicationErrorerrSecCSHostProtocolInvalidAttributeerrSecCSHostProtocolInvalidHasherrSecCSHostProtocolNotProxyerrSecCSHostProtocolRelativePatherrSecCSHostProtocolStateErrorerrSecCSHostProtocolUnrelated
Code-signing signature issue result codes
errSecCSSignatureFailederrSecCSSignatureInvaliderrSecCSSignatureNotVerifiableerrSecCSSignatureUnsupportederrSecCSUnsignederrSecCSUnsignedNestedCodeerrSecCSUnsupportedDigestAlgorithmerrSecCSSignatureUntrusted
Code-signing file format issue result codes
errSecCSDSStoreSymlinkerrSecCSFileHardQuarantinederrSecCSInvalidSymlinkerrSecCSNoMainExecutableerrSecCSRegularFileerrSecCSUnsealedAppRooterrSecCSUnsealedFrameworkRoot
Code-signing resource issue result codes
errSecCSResourceDirectoryFailederrSecCSResourceNotSupportederrSecCSResourceRulesInvaliderrSecCSResourcesInvaliderrSecCSResourcesNotFounderrSecCSResourcesNotSealed
Other result codes
errSecCSBadCallbackValueerrSecCSBadFrameworkVersionerrSecCSBadLVArcherrSecCSBadMainExecutableerrSecCSBadNestedCodeerrSecCSBadResourceerrSecCSCMSTooLargeerrSecCSCancellederrSecCSGuestInvaliderrSecCSHelperFailederrSecCSHostRejecterrSecCSInfoPlistFailederrSecCSInternalErrorerrSecCSInvalidAttributeValueserrSecCSInvalidFlagserrSecCSInvalidObjectReferrSecCSInvalidPlatformerrSecCSMultipleGuestserrSecCSNoMatcheserrSecCSNoSuchCodeerrSecCSNotAHosterrSecCSNotAppLikeerrSecCSNotSupportederrSecCSObjectRequirederrSecCSOutdatederrSecCSReqFailederrSecCSReqInvaliderrSecCSReqUnsupportederrSecCSStaticCodeChangederrSecCSStaticCodeNotFounderrSecCSTooBigerrSecCSUnimplementederrSecCSUnsupportedGuestAttributeserrSecCSVetoederrSecCSWeakResourceEnvelopeerrSecCSWeakResourceRuleserrSecCSBadTeamIdentifiererrSecCSInvalidAssociatedFileDataerrSecCSInvalidTeamIdentifiererrSecMultipleExecSegmentserrSecCSInvalidEntitlementserrSecCSInvalidRuntimeVersionerrSecCSRevokedNotarization