You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MacOS Electron应用公证失败:Error 65与CloudKit记录未找到求助

macOS Electron应用公证失败:Error 65 与 CloudKit 记录未找到问题

核心错误

为MacOS平台的Electron应用执行公证时,反复触发两个关键错误:

Error: Failed to staple your application with code: 65

以及:

CloudKit query for Ringer.app (2/6616b14b31693a2da25c1fec0581258b1cdbfa19) failed due to "Record not found".

已尝试的修复手段

  • 使用electron-notarize、electron-builder-notarize及electron-builder内置公证工具,均无效
  • 撤销并重新下载代码签名证书
  • 修改证书信任设置

以上操作均未解决问题。

完整错误日志

2024-09-04T16:23:55.183Z - Error: Failed to staple your application with code: 65

Processing: /path/to/Ringer.app
Properties are {
    NSURLIsDirectoryKey = 1;
    NSURLIsPackageKey = 1;
    NSURLIsSymbolicLinkKey = 0;
    NSURLLocalizedTypeDescriptionKey = Application;
    NSURLTypeIdentifierKey = "com.apple.application-bundle";
    "_NSURLIsApplicationKey" = 1;
}
Props are {
    cdhash = {length = 20, bytes = 0x6616b14b31693a2da25c1fec0581258b1cdbfa19};
    digestAlgorithm = 2;
    flags = 65536;
    secureTimestamp = "2024-09-04 16:22:22 +0000";
    signingId = "com.example.app";
    teamId = TEAM_ID;
}
JSON Data is {
    records =     (
                {
            recordName = "2/2/6616b14b31693a2da25c1fec0581258b1cdbfa19";
        }
    );
}
 Headers: {
    "Content-Type" = "application/json";
}
Domain is api.apple-cloudkit.com
Response is <NSHTTPURLResponse: 0x15c805720> { URL: https://api.apple-cloudkit.com/database/1/com.apple.gk.ticket-delivery/production/public/records/lookup } { Status Code: 200, Headers {
    Connection =     (
        "keep-alive"
    );
    "Content-Encoding" =     (
        gzip
    );
    "Content-Type" =     (
        "application/json; charset=UTF-8"
    );
    Date =     (
        "Wed, 04 Sep 2024 16:23:55 GMT"
    );
    Server =     (
        "AppleHttpServer/b866cf47a603"
    );
    "Strict-Transport-Security" =     (
        "max-age=31536000; includeSubDomains;"
    );
    "Transfer-Encoding" =     (
        Identity
    );
    Via =     (
        "xrail:st53p00ic-qujn13071302.me.com:8301:24R363:grp60,631194250daa17e24277dea86cf30319:f14d246dadd971461f6eeb141bc3c9ed:usdal2"
    );
    "X-Apple-CloudKit-Version" =     (
        "1.0"
    );
    "X-Apple-Edge-Response-Time" =     (
        27
    );
    "X-Apple-Request-UUID" =     (
        "85c634a0-a676-4e88-867a-d41f3052962a"
    );
    "X-Responding-Instance" =     (
        "ckdatabasews:16305701:st42p63ic-ztfb09161601:8807:2423B470:dc6eb160027793833b3454f7e31c59d833eb82d1"
    );
    "access-control-expose-headers" =     (
        "X-Apple-Request-UUID,X-Responding-Instance,Via"
    );
    "x-apple-user-partition" =     (
        63
    );
} }
Size of data is 165
JSON Response is: {
    records =     (
                {
            reason = "Record not found";
            recordName = "2/2/6616b14b31693a2da25c1fec0581258b1cdbfa19";
            serverErrorCode = "NOT_FOUND";
        }
    );
}
CloudKit query for Ringer.app (2/6616b14b31693a2da25c1fec0581258b1cdbfa19) failed due to "Record not found".
Could not find base64 encoded ticket in response for 2/6616b14b31693a2da25c1fec0581258b1cdbfa19
The staple and validate action failed! Error 65.

内容的提问来源于stack exchange,提问作者Superior125

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.18 19:34:57