The binary is not signed with a valid Developer ID certificate

上传APP进行公正的时候遇到如下错误:

{
  "logFormatVersion": 1,
  "jobId": "ce4a0c49-1f8b-4a02-839c-a125c10fba6c",
  "status": "Invalid",
  "statusSummary": "Archive contains critical validation errors",
  "statusCode": 4000,
  "archiveFilename": "***.zip",
  "uploadDate": "2020-04-14T03:57:45Z",
  "sha256": "be7cf25a8a14a2d8e064e81d78d46570d8bf608d68c947f5e72329c8fb295ef7",
  "ticketContents": null,
  "issues": [
    {
      "severity": "error",
      "code": null,
      "path": "***.zip/***.app/Contents/Frameworks/***.kext/Contents/MacOS/***",
      "message": "The binary is not signed with a valid Developer ID certificate.",
      "docUrl": null,
      "architecture": "x86_64"
    }
  ]
}

解决:首先确认***.kext的签名状态。

codesign -vv ***.kext

如果确实没有签名,则手动签名。 

codesign -f -s "Developer ID Application: *** (*9756NP***)" -v "***.kext" --deep

签名之后再用第一条命令查看一下签名状态。一般得出如下结果表示签名成功:

Executable=/User

猜你喜欢

转载自blog.csdn.net/liuzehn/article/details/105522791
今日推荐