为什么在build-profile.json5->signingConfigs 里配置了华为平台上设置的调试模式的签名信息后报错?

​为什么在build-profile.json5->signingConfigs 里配置了华为平台上设置的调试模式的签名信息后,另外一个同事拉取代码后报错,

错误信息如下:​

Detail: Signing failed. Reconfigure the signature or clear the /Users/liukui/Documents/workspace/deveco/harmony folder and perform signing again.at /Users/liukui/Documents/workspace/deveco/harmony/build-profile.json5
HarmonyOS
2024-11-20 11:49:30
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
zxjiu

​团队可以统一使用同一份签名文件的拷贝,具体操作方法可参考下方链接进行手动配置签名。《手动配置签名》:​https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-signing-0000001587684945

在证书配置修改之后,需要点击IDE提示的“Sync Now”,build-profile.json5中的内容才会同步修改。针对当前的问题,需要确认下密码验证失败时,使用的.p12、.p7b文件、.cer文件是否为同一个文件,随后还需确认密码、别名是否正确,手动配置的方案是经过多次验证的,不通过签名配置页面配置,辛苦您按照如下操作:

①在build-profile.json5中签名文件的地址配置相对路径,并将对应的签名文件放到项目中相应的路径下。

②将build-profile.json5文件中"material"字段整个copy过去,拿到另一个电脑上用。

③把相关的签名文件按相应路径也复制过去,这样就不会再生成新的签名。 文件目录路径可以参考如下信息:

对应② sign(directory)->lmaterial(directory) auto_chos_defaut_comexamplanativedemo_9.cer(document) auto_chos_dafsul_comexamplanativedemo_9p7b(document) auto_chos_defsul_comexamplenativedemo_9.p12(document) 对应③ “material”: { “certpath”; “sign/auto ohos default com.example.nativedeno 9.cer”(), … }​

分享
微博
QQ
微信
回复
2024-11-20 15:38:36
相关问题
stage模式下,module.json5配置
556浏览 • 1回复 待解决
nagios配置为什么页面是空
2437浏览 • 0回复 待解决