Facing issue while codesign the app.

I tried to codesign my app by following way,

we downloaded the certificate from apple developer account and We tried to sign the binaries with the downloaded certificate using codesign command . line command (sudo codesign -f -vv -o runtime --deep --timestamp -s  "Developer Id Cer: user(123455)" try.dylib) I have received the following error

  1. Though I have added the certificate in keychain access and also checked that the certificate is valid, I still got**”The specified item could  not be found in the keychain”** .
  2. Then I tried same scenario with other certificate but got following error

                              Warning: unable to build chain tp self-signed root for signer "Developer Id Cer: user(123456)”                                   try.dylib: errSecInternalComponent

Any help would be really appreciated

sudo codesign -f -vv -o runtime --deep --timestamp -s "Developer Id Cer: user(123455)" try.dylib

There are two problems here:

  • Don’t sign code using sudo. The codesign tool needs access to your keychain and running as root can undermine that.

  • Don’t sign code using --deep. See --deep Considered Harmful for an explanation as to why this is a problem.

unable to build chain

This post describes the two common most causes for that error.

Share and Enjoy

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

Facing issue while codesign the app.
 
 
Q