乐乐很快乐。 2024-01-25 20:41 采纳率: 0%
浏览 10

签名失败 当前系统没有安装苹果根证书,是否打开证书目录(打开后依次安装证书AppleWWDRCAG3.cer,DeveloperIDCA.cer)

问题遇到的现象和发生背景

HBuilderX云打包 安心打包 ios一直提示 签名失败 当前系统没有安装苹果根证书,是否打开证书目录(打开后依次安装证书AppleWWDRCAG3.cer,DeveloperIDCA.cer)
昨天刚遇到一次,根据官方的文档,以及各种文档,进行处理,已经可以正常的打包了。没成想,今天再打包的时候又是这个问题,然后重新下载证书,然后还是不行,能帮忙给看看嘛?@啊哈老郭 @郏国上

操作环境、软件版本等信息

macOS:13.5 hbuilderX:3.99 正式版本
错误日志

[Info] begin copyFile files to ipa...
[Info] begin replace files to ipa...
[Info] begin update mobileprovision to ipa...
[Info] begin outPut t_entitlements_full plist file...
[Info] begin outPut outPutEntitlements plist file...
[Info] begin verifyPlistFiles
[Info] begin update files to ipa...
[Info] begin createKeychain...
[Info] begin unlockKeychain...
[Info] begin setListKeychains...
[Info] begin importAppleCerts...
[Info] 1 certificate imported.
[Info] 1 certificate imported.
[Info] begin importSecurity...
[Info] 1 identity imported.
[Info] begin setkeyPartitionList...
[Info] keychain: "/Users/feigou/Library/Keychains/HBuilderX.keychain-db"
[Info] version: 512
[Info] class: 0x00000010
[Info] attributes:
[Info] 0x00000000 =0x00000010
[Info] 0x00000001 ="feigou"
[Info] 0x00000002 =
[Info] 0x00000003 =0x00000001
[Info] 0x00000004 =0x00000000
[Info] 0x00000005 =0x00000000
[Info] 0x00000006 =0x8137D134C91324C26216710624EB4B09F7718005 "\2017\3214\311\023$\302b\026q\006$\353K\011\367q\200\005"
[Info] 0x00000007 =
[Info] 0x00000008 =0x7B38373139316361322D306663392D313164342D383439612D3030303530326235323132327D00 "{87191ca2-0fc9-11d4-849a-000502b52122}\000"
[Info] 0x00000009 =0x0000002A "\000\000\000*"
[Info] 0x0000000A =0x00000800
[Info] 0x0000000B =0x00000800
[Info] 0x0000000C =0x0000000000000000
[Info] 0x0000000D =0x0000000000000000
[Info] 0x0000000E =0x00000001
[Info] 0x0000000F =0x00000001
[Info] 0x00000010 =0x00000001
[Info] 0x00000011 =0x00000000
[Info] 0x00000012 =0x00000001
[Info] 0x00000013 =0x00000001
[Info] 0x00000014 =0x00000001
[Info] 0x00000015 =0x00000001
[Info] 0x00000016 =0x00000001
[Info] 0x00000017 =0x00000001
[Info] 0x00000018 =0x00000001
[Info] 0x00000019 =0x00000001
[Info] 0x0000001A =0x00000001
[Info] begin getCertCName...
[Info] begin codesignFramwork to ipa...
[Error] DCUniBase.framework: replacing existing signature
[Info] begin updatePlistInfo to ipa...
[Info] begin codesignApp to ipa...
[Error] HBuilder.xcarchive/Payload/HBuilder.app: replacing existing signature
[Error] HBuilder.xcarchive/Payload/HBuilder.app: resource fork, Finder information, or similar detritus not allowed
[Info] begin importSecurity...
[Info] 1 identity imported.
[Error] HBuilder.xcarchive/Payload/HBuilder.app: replacing existing signature
[Error] HBuilder.xcarchive/Payload/HBuilder.app: resource fork, Finder information, or similar detritus not allowed
[Info] begin importSecurity...
[Info] 1 identity imported.
[Error] codesignApp to ipa failed
[Info] Package make result:Failed. Reason:
尝试过的解决方法

根据你的文档操作过,依然是 签名失败的提示

我想要达到的结果

云打包打包成功

  • 写回答

2条回答 默认 最新

  • 专家-赤兔[在线] 全栈领域优质创作者 2024-01-30 23:18
    关注

    引自免费微信小程序:皆我百晓生

    根据您的描述,问题是在使用HBuilderX云打包工具时,出现了签名失败的错误提示,指出当前系统没有安装苹果根证书。下面是解决此问题的一些建议:

    1. 确认证书安装 请按照提示安装两个证书:AppleWWDRCAG3.cer和DeveloperIDCA.cer。您可以按照以下步骤进行安装:

    • 在终端中执行以下命令,打开证书目录:
      open ~/Library/MobileDevice/Provisioning\ Profiles/
      
    • 将证书文件(AppleWWDRCAG3.cer和DeveloperIDCA.cer)从其他位置拖动到打开的证书目录中。

    2. 检查证书有效性 请确保安装的证书是有效的,并且没有过期。您可以在Keychain Access应用程序中查看和验证证书的有效性。如果证书已经过期或无效,您需要重新申请并安装最新的证书。

    3. 清理项目 有时,签名失败问题可能与项目文件中的损坏或冲突有关。您可以尝试清理项目并重新构建,以确保项目文件的完整性。

    如果上述方法仍未解决问题,您可以尝试以下进一步的调试步骤:

    1. 清理项目 在HBuilderX中选择“菜单栏 -> 运行 -> 清理项目”选项,然后重新构建项目并尝试打包。

    2. 检查Provisioning Profile 确保在HBuilderX中配置了正确的Provisioning Profile。您可以在HBuilderX的“云端打包”界面中查看和编辑应用程序的配置信息。

    3. 更新HBuilderX 确认您正在使用HBuilderX的最新版本。如果不是,请尝试更新到最新版本,以获得修复可能存在的问题的更新。

    如果上述方法仍然无法解决问题,请尝试联系HBuilderX的技术支持团队,他们可以提供更详细的技术支持和解决方案。

    评论

报告相同问题?

问题事件

  • 修改了问题 1月25日
  • 创建了问题 1月25日

悬赏问题

  • ¥50 关于在matlab上对曲柄摇杆机构上一点的运动学仿真
  • ¥15 jetson nano
  • ¥15 :app:debugCompileClasspath'.
  • ¥15 windows c++内嵌qt出现数据转换问题。
  • ¥20 公众号如何实现点击超链接后自动发送文字
  • ¥15 用php隐藏类名和增加类名
  • ¥15 算法设计与分析课程的提问
  • ¥15 用MATLAB汇总拟合图
  • ¥15 智能除草机器人方案设计
  • ¥15 对接wps协作接口实现消息发送