OpenHarmony开发者论坛

标题: 团结引擎打包报错 hap-sign-tool: error: ACCESS_ERROR, code: 109. Details: Password error of [打印本页]

作者: wxp0821    时间: 2024-8-3 20:47
标题: 团结引擎打包报错 hap-sign-tool: error: ACCESS_ERROR, code: 109. Details: Password error of
[md]### 【问题描述】

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

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.GUIUtilityrocessEvent(Int32, IntPtr, Boolean&)
![2024-08-03_204316.png](https://forums-obs.openharmony.c ... pepud1gpmgy0dj1.png "2024-08-03_204316.png")

![2024-08-03_204235.png](https://forums-obs.openharmony.c ... 83ggfg4se6ps8pz.png "2024-08-03_204235.png")

### 【运行环境】

硬件:
ROM版本:
DevEvoStudio版本:
SDK版本:
[/md]
作者: hyacinth养花人    时间: 2024-8-6 08:58
错误分析:keyalias密码错误

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




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5