美文网首页
Command CodeSign failed with a n

Command CodeSign failed with a n

作者: lele8446 | 来源:发表于2021-04-30 18:03 被阅读0次

问题场景

  1. Xcode证书选择提示正常,但编译之后报错 Command CodeSign failed with a nonzero exit code
  2. 钥匙串访问,安装.p12证书后显示 XXX证书不受信任

解决方案

以上问题都是由于WWDRCA证书问题导致,目前的Apple全球开发者关系认证中间证书 Apple Worldwide Developer Relations Certification Authority 将于2023年2月8日到期。Apple发布了新的WWDRCA,更新后的证书过期时间为2030年2月20日,新证书将用于签署2021年1月28日后为苹果开发者项目颁发的新软件签名证书(详情介绍

解决方法为下载安装新的WWDRCA:

https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer

证书安装后如图:


WWDRCA.png

相关文章

网友评论

      本文标题:Command CodeSign failed with a n

      本文链接:https://www.haomeiwen.com/subject/moxorltx.html