I am trying to translate a working codesigning mechanism into our CI process.
I add the cert using the following.
But, when I check it, it is not recognized for codesigning.
And subsequent codesign fails with
Compared to what I am doing in the working mechanism on my desktop, only missing step seems to be signing to my developer account on xcode. But, not sure if that is the issue, or if so, not sure how you can do that from command line.
I add the cert using the following.
Code Block sudo security add-trusted-cert -d -r trustRoot -k ~/Library/Keychains/login.keychain-db developerID_application.cer
But, when I check it, it is not recognized for codesigning.
Code Block $ security find-identity -p codesigning Policy: Code Signing Matching identities 0 identities found Valid identities only 0 valid identities found
And subsequent codesign fails with
Code Block error: The specified item could not be found in the keychain.
Compared to what I am doing in the working mechanism on my desktop, only missing step seems to be signing to my developer account on xcode. But, not sure if that is the issue, or if so, not sure how you can do that from command line.