如果你也经历了类似的错误,可以尝试用我的方法看是否解决。错误例图如下

iOS/Xcode问题之Command CodeSign failed with a nonzero exit code或者Revoke certificate

iOS/Xcode问题之Command CodeSign failed with a nonzero exit code或者Revoke certificate

  1. 根据我的经验,造成这个问题的原因是我错误地将钥匙链访问权限重置为默认,所以我丢失了我的开发证书。
  2. 我怎么解决这个问题?
  3. 我从钥匙链访问(Keychain Access)中清理了我的苹果开发证书
  4. 我Keychain Access清理了我的苹果开发private**
  5. 然后我得到了新的错误: Revoke certificate Your account already has an Apple Development signing certificate for this machine, but its private key is not installed in your keychain. Xcode can create a new one after revoking your existing certificate.
  6. 转到Xcode->Preferences->Accounts标签->在苹果ID下找到team name ->双击它->点击框左下角的+按钮->选择App Development
  7. 在项目-> Signing & Capabilities->Team下拉菜单中,选择“None”
  8. 重新选择正确的开发团队
  9. 通过shift + cmd + k清洁项目
  10. 重建cmd + b项目

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-20
  • 2021-07-16
  • 2022-12-23
  • 2021-07-10
  • 2021-09-11
  • 2021-09-05
  • 2022-12-23
相关资源
相似解决方案