由于二进制文件使用早于 10.9 SDK 的 SDK,电子公证失败

Electron notarisation failed due to The binary uses an SDK older than the 10.9 SDK

我们正在尝试对 Electron 应用程序进行公证,但我得到的是我们正在使用的 error.The 版本 电子:3.0.6, 电子建设者": "^21.2.0

{
"logFormatVersion": 1,
"jobId": "---",
"status": "Invalid",
"statusSummary": "Archive contains critical validation errors",
"statusCode": 4000,
"archiveFilename": "App.zip",
"uploadDate": "2020-10-29T16:19:57Z",
"sha256": "7e3996fbdc7bc2cd9e124720dad235393ffa652119fa466f09b47252d0b500b4",
"ticketContents": null,
"issues": [
 {
  "severity": "error",
  "code": null,
  "path": 
    "App.zip/App.app/Contents/Resources/app.asar.unpacked/node_modules/app- 
     builder-bin/mac/app-builder",
  "message": "The binary uses an SDK older than the 10.9 SDK.",
  "docUrl": null,
  "architecture": "x86_64"
 }
]
}

通过安装一些依赖项并将一些依赖项移动到 dev-dependencies 对我有用。在我的例子中,electron-publisher-s3 我将这个包移到了开发依赖项中。这张票对我有帮助Link