Code Signing on Mac ": the specified item was not found in the keychain"

I'm trying to sign an application on macOS Sierra, but my developer IDs were not found. Can someone clarify what I'm doing wrong? Thanks!

Here is my thread:

  • I downloaded the Apple Certificate "Application" and "Installer" from Apple
  • I installed both in the system keychain, they show "This certificate is valid"
  • I open a terminal and change directories in the application folder
  • I try codesign --deep --force --verbose --sign "<identity>" "<appName>" , but I get the following "error: the specified item could not be found in the keychain"

Some things I tried:

a. Use custom settings for certificates by setting the Always Trust code signature

b. Using a certificate for the entire common name for an identifier instead of a value inside parentheses

with. Running security find-identity -p codesigning , I get the following "Policy: code signature matching identifiers" Identities found 0 Valid identifiers only 0 exact identifiers found "

e. Removing certificates and reinstalling them in the login login chain

+7
source share
1 answer

I have the same error. I am using Mojave with Xcode 10.2.

0
source

Source: https://habr.com/ru/post/1260146/


All Articles