DevEco Studio Automatically generate signature 提示 The number of certificates has reached the limit

DevEco Studio Automatically generate signature 提示 The number of certificates has reached the limit

问题1: DevEco Studio 自动生成签名提示Exceeds Limit The number of certificates has reached the limit, Delete some certificates and try again. Certificate Number

但开发者后台显示证书只有四个(已仔细确认是同一个团队),appid、profile我也贴图了,应该都远没达到上限。感觉是DevEco的bug,希望官方能给出解决办法。

问题2:点击跳转的网页是空白,此处url应该更新,属实低级错误了,感觉应该调到“证书、APP ID和Prifile”tab才对,希望能修复。

问题3:debug包也强制要求有签名才能安装,下载demo想验证一下还需要设置签名,然后自动签名又出问题,就很麻烦。感觉debug包可以跟安卓一样,不强制要求签名。出于安全考虑这么设计可以理解,但确实不便。


5 回复

自动签名和AGC平台里的证书个数应该无关,看下您build-profile.json5文件中配置的签名个数是否超了?


感谢您的解答,如果跟build-profile.json5有关,因该是只有指定的项目会报错,但我最近clone了好几个项目都不行。最近一次复现是运行是官方navigator的demo,其中的signingConfigs只有一个,完整build-profile.json5如下:

{
  "app": {
    "signingConfigs": [
      {
        "name": "default",
        "type": "HarmonyOS",
        "material": {
          "storePassword": "xxx",
          "certpath": "D:/boyaime-client-harmony/sign/boyasec_debug.cer",
          "keyAlias": "boyasec",
          "keyPassword": "xxx",
          "profile": "D:/boyaime-client-harmony/sign/iguardNextDebug.p7b",
          "signAlg": "SHA256withECDSA",
          "storeFile": "D:/boyaime-client-harmony/sign/boyasec.p12"
        }
      }
    ],
    "products": [
      {
        "name": "default",
        "signingConfig": "default",
        "compatibleSdkVersion": "5.0.0(12)",
        "runtimeOS": "HarmonyOS"
      }
    ],
    "buildModeSet": [
      {
        "name": "debug"
      },
      {
        "name": "release"
      }
    ]
  },
  "modules": [
    {
      "name": "entry",
      "srcPath": "./entry",
      "targets": [
        {
          "name": "default",
          "applyToProducts": [
            "default"
          ]
        }
      ]
    },
    {
      "name": "harA",
      "srcPath": "./harA"
    },
    {
      "name": "harB",
      "srcPath": "./harB"
    },
    {
      "name": "hspA",
      "srcPath": "./hspA",
      "targets": [
        {
          "name": "default",
          "applyToProducts": [
            "default"
          ]
        }
      ]
    },
    {
      "name": "hspB",
      "srcPath": "./hspB",
      "targets": [
        {
          "name": "default",
          "applyToProducts": [
            "default"
          ]
        }
      ]
    }
  ]
}

您好,为了更快速解决您的问题,并且吸引更多用户一同参与您问题的解答与讨论,建议您补全如下信息:

补全版本信息,让参与用户更快速复现您的问题;

更多提问技巧,请参考:【Tips】如何提个好问题

从某一天尝试跑demo开始的。未找到复现步骤。可能跟多个开发使用同一个企业账号有关。感觉需要DevEco的开发人员看看日志才能知道是什么原因,

在DevEco Studio中,当您尝试自动生成签名时,如果提示“The number of certificates has reached the limit”,这意味着您已达到华为开发者账户中允许创建的最大证书数量。解决此问题的方法包括:

  1. 删除未使用的证书:登录华为开发者账户,检查并删除不再使用的证书。
  2. 联系华为支持:如果确实需要更多证书,可以联系华为开发者支持团队,申请增加证书配额。
  3. 优化证书管理:合理规划证书使用,避免不必要的证书创建。

通过这些步骤,您可以解决证书数量达到上限的问题,并继续使用DevEco Studio生成签名。

回到顶部