security import p12_filepath -k /Users/xxx/Library/Keychains/login.keychain -P p12_password -T /usr/bin/codesign
注:xxx替换为登录账号,p12_filepath替换成p12文件路径,p12_password替换成p12密码,如果为空,则替换为“”
security import 开发推送证书密码无密码.p12 -k /Users/hom/Library/Keychains/login.keychain -P "" -T /usr/bin/codesign
关于security命令的更多介绍https://www.cnblogs.com/pixy/p/4817579.html