使用发布证书,发布P7b。进行真机调试时报错

准备进行打包APP进行上架,发现替换发布证书后,无法调试。

申请了发布证书(cer)和发布Profile(p7b)。发现无法调试,run到真机时,提示

04/26 19:05:26: Install Failed: error: failed to install bundle.

code:9568322

error: signature verification failed due to not trusted app source.

使用buildAPP时,报错提示:

hvigor ERROR: Failed ::PackageApp… 
hvigor ERROR: Tools execution failed. 
2024/04/26 19:10:31.504 - Ohos BundleTool [Error]: input module vendor is different. 
2024/04/26 19:10:31.504 - Ohos BundleTool [Error]: some app variable is different. 
2024/04/26 19:10:31.504 - Ohos BundleTool [Error]: Compressor::compressAppMode compress failed. 
2024/04/26 19:10:31.506 - Ohos BundleTool [Error]: Compressor::compressProcess Bundle exception. 
2024/04/26 19:10:31.507 - Ohos BundleTool [Error]: Compressor::compressProcess compress failed. 
2024/04/26 19:10:31.507 - Ohos BundleTool [Error]: CompressEntrance::main exit, compress failed 
Detail: Please check the message from tools.
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
HarmonyOS
2024-09-13 13:16:33
1206浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
put_get

错误原因是 .p7b的distribution-certificate字段内容在.cer文件中找不到,属于.p7b文件有误,在AGC平台正确操作后重新生成一份.p7b文件即可解决。

分享
微博
QQ
微信
回复
2024-09-13 18:22:15


相关问题
如何使用发布证书进行调试
966浏览 • 1回复 待解决
如何使用发布证书进行调试
899浏览 • 1回复 待解决
HarmonyOS 如何使用发布证书进行调试
1541浏览 • 1回复 待解决
更换p7b文件是否会影响后续更新?
926浏览 • 1回复 待解决
使用ohpm发布tgz文件时报错
1442浏览 • 1回复 待解决
请问Hi3516设备开发如何获得p7b文件
9518浏览 • 2回复 待解决
HarmonyOS 应用发布时报错
453浏览 • 1回复 待解决
DevEco Studio怎么使用进行调试
9520浏览 • 1回复 待解决
HarmonyOS 使用发布证书运行报错9568322
572浏览 • 1回复 待解决
HarmonyOS 发布证书能否调试项目
910浏览 • 1回复 待解决
HarmonyOS 无法进行断点调试
954浏览 • 1回复 待解决
HarmonyOS 发布证书无法调试安装9568322
638浏览 • 1回复 待解决
HarmonyOS 无法进行断点调试
677浏览 • 1回复 待解决
HarmonyOS 发布证书
737浏览 • 1回复 待解决