mac公正报错Error: Failed to notarize via notarytool

148 阅读1分钟

mac公正异常, 出错了 Error: Failed to notarize via notarytool

mac公正异常, 出错了
Error: Failed to notarize via notarytool

Error: abortedUpload(resumeRequest: SotoS3.S3.ResumeMultipartUploadRequest(uploadRequest: SotoS3.S3.CreateMultipartUploadRequest(acl: nil, bucket: "notary-submissions-prod", bucketKeyEnabled: nil, cacheControl: nil, contentDisposition: nil, contentEncoding: nil, contentLanguage: nil, contentType: nil, expectedBucketOwner: nil, _expires: SotoCore.OptionalCustomCoding<SotoCore.HTTPHeaderDateCoder>(value: nil), grantFullControl: nil, grantRead: nil, grantReadACP: nil, grantWriteACP: nil, key: "prod/AROARQRX7CZS3PRF6ZA5L:25319a69-6828-46ea-b231-f909899d95fe", metadata: nil, objectLockLegalHoldStatus: nil, objectLockMode: nil, _objectLockRetainUntilDate: SotoCore.OptionalCustomCoding<SotoCore.ISO8601DateCoder>(value: nil), requestPayer: nil, serverSideEncryption: nil, sSECustomerAlgorithm: nil, sSECustomerKey: nil, sSECustomerKeyMD5: nil, sSEKMSEncryptionContext: nil, sSEKMSKeyId: nil, storageClass: nil, tagging: nil, websiteRedirectLocation: nil), uploadId: "j9bPGa.V54bM8yRh63KSglflNRDCICHTrAA27jQ_29nfU7bSLIWPOtWVkfajSGcj706Hh.hAUvmupw34x3_5Nm4C5GRVW0yjqA0Bn86SZK8Do7UqMzMdJVEQmCjjS7PVMjok.8UVY_60uqh.bmI1TKQ4ET8matTsDLnd_jiFuQcyw3023A4eU9eauOpaL.eJ", completedParts: []), error: The operation couldn’t be completed. (Network.NWError error 54 - Connection reset by peer))

    at Object.<anonymous> (/Users/sun/vs2024proj/ee/node_modules/electron-notarize/src/notarytool.ts:95:13)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/sun/vs2024proj/ee/node_modules/electron-notarize/lib/notarytool.js:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
  • building        target=macOS zip arch=arm64 file=out/ee.zip
  • building        target=DMG arch=arm64 file=out/ee.dmgDetected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+
  • building block map  blockMapFile=out/ee.dmg.blockmap
  • building block map  blockMapFile=out/ee.zip.blockmap
npm notice 
npm notice New major version of npm available! 8.19.4 -> 10.9.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.0
npm notice Run npm install -g npm@10.9.0 to update!
npm notice 

报错原因

这个错误是由于在使用notarytool进行公证时出现了问题。可能的原因有很多,例如网络连接问题、服务器问题等。你可以尝试以下方法来解决这个问题:

  1. 检查你的网络连接是否正常,确保你可以访问互联网。
  2. 确保你的系统时间和日期设置正确。
  3. 尝试重新运行notarize命令,看看是否能够成功完成。
  4. 如果问题仍然存在,可以考虑联系苹果开发者支持寻求帮助。

我的解决方法

  • 更换“飞机场”的接入方式,使用Clash订阅EFCloud,保证网络连接正常。