我想在El Capitan上辞职.dmg。
首先,我得到xcode 8.1.beta并安装到我的el队长,然后从xcode我做了:
xcode --> preferences-->accounts--> view Details --> create certificates--> Done (provisioning profiles part is empty, no idea what this is about).
然后从钥匙串访问 - >登录(证书) - >我看到了:
Apple WWDR certificate
Developer ID Application certificate
Developer ID Installer certificate
Developer ID Certification Authority
然后从命令行:
我做了:
certtool y | grep Developer\ ID
我得到了:
Developer ID Certification Authority
Developer ID Application: my company name
Developer ID certification Authority
但是当我这样做的时候:
codesign --verify --verbose --sign "Developer ID Application: my company name" *.dylib
我得到了:
开发者ID申请:我的公司名称:未找到任何身份。
答案 0 :(得分:1)
尝试使用以下命令查找可用且有效的代码签名标识的名称:
security find-identity -p codesigning -v login.keychain
Policy: Code Signing
Matching identities
...
3) 98786D82765110FCCAFE41E325B836C5EB3B9C91 "Developer ID Application: ABC"
然后使用其中一个精确结果进行编码,并强制使用您的login.keychain:
security list-keychains -d user -s login.keychain
security default-keychain -s login.keychain
codesign -vfs "Developer ID Application: ABC" --keychain login.keychain *.dylib