《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