no identity found Command CodeSign failed with a nonzero exit code

《HBuilderX使用mac打包ios应用提示苹果根证书没有安装》
问题:替换证书后,用xcode运行模拟器正常,调试真机时报这个错误。
1.增加苹果账号;
2.从一个苹果研发者账号建立的app开发证书,然后把这个app开发者证书失效掉,然后在另一个苹果开发者账号建立相同bundle identifier的app开发证书就有可能报这个错误。
解决方法:这个错误本质上时两个证书冲突引起,引起冲突的是Apple Worldwide Developer Relations Certification Authority证书。会在钥匙串的登陆里看到两个Apple Worldwide Developer Relations Certification Authority证书。解决办法是删除Apple Worldwide Developer Relations Certification Authority证书,然后从其它的正常电脑拷贝过来一个正常的拖入系统证书里面。我估计把那个正常的证书导出,再那两个重复的证书都删除了,然后拖入也可以。替换了证书需要重启电脑。这样这个问题就解决了。
在这里插入图片描述
在这里插入图片描述

CodeSign /Users/jiaguoshang/Library/Developer/Xcode/DerivedData/ChildishBeautyParent-bpiwrfjwqipteohktjbxfelejfre/Build/Products/Debug-iphoneos/稚美家长端.app (in target 'ChildishBeautyParent' from project 'ChildishBeautyParent')
    cd /Users/jiaguoshang/Desktop/工作/ChildishBeautyParent
    export CODESIGN_ALLOCATE\=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    
Signing Identity:     "Apple Development: Juhong Wu (A7G56TPCFM)"
Provisioning Profile: "iOS Team Provisioning Profile: com.familyjoy.childishbeautyparent"
                      (d6189d3e-fec5-4a06-bfb0-b85508d96533)

    /usr/bin/codesign --force --sign 548D05FF5643A89C3ECF7CD127D9014D85C164F4 --entitlements /Users/jiaguoshang/Library/Developer/Xcode/DerivedData/ChildishBeautyParent-bpiwrfjwqipteohktjbxfelejfre/Build/Intermediates.noindex/ChildishBeautyParent.build/Debug-iphoneos/ChildishBeautyParent.build/稚美家长端.app.xcent --timestamp\=none /Users/jiaguoshang/Library/Developer/Xcode/DerivedData/ChildishBeautyParent-bpiwrfjwqipteohktjbxfelejfre/Build/Products/Debug-iphoneos/稚美家长端.app

548D05FF5643A89C3ECF7CD127D9014D85C164F4: no identity found
Command CodeSign failed with a nonzero exit code


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值