团结引擎打包报错 hap-sign-tool: error: ACCESS_ERROR, code: 109. Details: Password error of

wxp0821 显示全部楼层 发表于 2024-8-3 20:47:10

【问题描述】

  1. 介绍问题现象和发生的背景
  2. 相关的代码(请勿使用截图)
  3. 运行结果、错误截图
  4. 我尝试过的解决方法和结果
  5. 我想要达到的结果

CommandInvokationFailure: sign hap failure D:\Program Files\Tuanjie\2022.3.2t15\Editor\Data\PlaybackEngines\OpenHarmonyPlayer\OpenJDK\bin\java.exe -jar hap-sign-tool.jar sign-app -mode "localSign" -signAlg "SHA256withECDSA" -keyAlias "harmony" -keystoreFile "D:/Harmony/NewKey/Harmony.p12" -keystorePwd "xxxxxxxx" -profileFile "D:/Harmony/NewKey/HarmonyDebug.p7b" -appCertFile "D:/Harmony/NewKey/Harmony.cer" -inFile "entry-default-unsigned.hap" -outFile "entry-default-signed.hap"

stderr[ 08-03 20:43:03 ERROR - hap-sign-tool: error: ACCESS_ERROR, code: 109. Details: Password error of 'harmony' ] stdout[ 08-03 20:43:02 INFO - Start sign-app 08-03 20:43:02 INFO - certificate in profile: ������(1478285388253531841)\ 08-03 20:43:02 INFO - Start to sign code. 08-03 20:43:02 INFO - D:/Harmony/NewKey/Harmony.p12 is exist. Try to load it with given passwd 08-03 20:43:03 INFO - sign-app failed ] exit code: 1 UnityEditor.OpenHarmony.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.OpenHarmony.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEditor.OpenHarmony.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.OpenHarmony.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEditor.OpenHarmony.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.OpenHarmony.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEditor.OpenHarmony.OpenHarmonyJavaTools.RunJava (System.String args, System.String workingDir, System.Action`1[T] progress, System.String errorMsg) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEditor.OpenHarmony.CopyToBuild.ExecSignOperation (UnityEditor.OpenHarmony.CopyToBuild+SignOperation op, System.String& errorMsg) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEditor.OpenHarmony.CopyToBuild.SignHap (UnityEditor.OpenHarmony.PostProcessorContext context, System.String hapTemplateDir) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEditor.OpenHarmony.CopyToBuild.Execute (UnityEditor.OpenHarmony.PostProcessorContext context) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEditor.OpenHarmony.PostProcessRunner.RunAllTasks (UnityEditor.OpenHarmony.PostProcessorContext context) (at <c46b9dada9ee4bd3bdcd9c31d0646ba9>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) 2024-08-03_204316.png

2024-08-03_204235.png

【运行环境】

硬件: ROM版本: DevEvoStudio版本: SDK版本:

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论1

hyacinth养花人

沙发 发表于 2024-8-6 08:58:34
错误分析:keyalias密码错误

解决措施:签名命令中修改参数“-keyPwd”为正确的密码即可。

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部