我使用鸿蒙的发布签名打包,我在DevEco-studio打包可以成功,也上传到了APPGallery Connect上面了,但是在HBuilderX上面打包提示“由于未配置相关数字证书,打包未签名”,下面是“build-profile.json5”文件,请大佬帮忙看看是啥问题造成的
16:56:32.558 安装项目的依赖 ...
16:56:35.479 安装项目依赖成功
16:56:35.502 项目 techhero-uni 开始编译
16:56:37.827 正在编译中...
16:57:07.666 项目 techhero-uni 编译成功。
16:57:07.744 打包生成 .app .....................
16:58:08.531 由于未配置相关数字证书,打包未签名,请参考 配置文档
16:58:08.531 打包成功
16:58:08.531 生成的安装包 /Users/zhw/Documents/zcthSvn/apply-uni/techhero-uni/unpackage/release/com.example.test.template/build/outputs/release/com.example.test.template-release-unsigned.app
{
"app": {
"signingConfigs": [
{
"name": "default",
"type": "HarmonyOS",
"material": {
"storePassword": "0000001988D4BA8568B654A6187B1D1D4E484D50BFE0E9B581437D0B01E7FD54AF9740BE213B15E7EA",
"certpath": "/Users/zhw/Desktop/uni/techhero.cer",
"keyAlias": "techhero",
"keyPassword": "000000193FAEB59C9D6007B544FCC9E83F095E9F393B99772F7E2415C260BA60E616D8A04A2CFFF186",
"profile": "/Users/zhw/Desktop/uni/release_techhero_profileRelease.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "/Users/zhw/Desktop/uni/techheroP12.p12"
}
}
],
"products": [
{
"name": "default",
"signingConfig": "default",
"compatibleSdkVersion": "5.0.0(12)",
"runtimeOS": "HarmonyOS",
},
{
"name": "release",
"signingConfig": "release",
"compatibleSdkVersion": "5.0.0(12)",
"runtimeOS": "HarmonyOS",
}
],
"buildModeSet": [
{
"name": "debug",
},
{
"name": "release"
}
]
},
"modules": [
{
"name": "entry",
"srcPath": "./entry",
"targets": [
{
"name": "default",
"applyToProducts": [
"default",
"release"
]
}
]
}
]
}
8***@qq.com (作者)
感谢!!完美解决了
2024-10-21 08:45