api12版本,原生HarmonyOS版本,本地打生产环境release hap包,通过hdc install手动安装,安装失败,报错code:9568322 error: signature verification failed due to not trusted app source.。
目前根据https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs-V5/faqs-app-debugging-9-V5文档配置,已经有了生产环境的Profile,设备也已添加,同时也在测试用户中新建了线上测试用户组,但还是会报这个错
可以排查以下原因:
1、hilog日志中有VerifyProfileInfo failed,可能是由于使用在线签名只替换了p7b文件, 没有改keyAlias, 最终导致报错;需要在ide的签名配置中将sign.js文件中的keyAlias的值改成申请profile的电子流中证书名
2、开放测试已经下线了。推荐使用公开测试:https://developer.huawei.com/consumer/cn/doc/app/agc-help-harmonyos-testapp-0000001873653977\#section102311027173217