Post

Replies

Boosts

Views

Activity

Reply to Issues with Notarization and Stapling
I checked the .pkg and everything seems to be ok. pkgutil --check-signature dist/VIVIDTIME.pkg Package "VIVIDTIME.pkg": Status: signed by a developer certificate issued by Apple for distribution Signed with a trusted timestamp on: 2025-02-18 14:59:40 +0000 Certificate Chain: 1. Developer ID Installer: Pavel Bochkov-Rastopchin (2QKDCTR5Y3) Expires: 2027-02-01 22:12:15 +0000 SHA256 Fingerprint: ..... ------------------------------------------------------------------------ 2. Developer ID Certification Authority Expires: 2027-02-01 22:12:15 +0000 SHA256 Fingerprint: ... ------------------------------------------------------------------------ 3. Apple Root CA Expires: 2035-02-09 21:40:36 +0000 SHA256 Fingerprint: ....
Feb ’25
Reply to Issues with Notarization and Stapling
I notarized the .pkg xcrun notarytool submit "dist/VIVIDTIME.pkg" \ --apple-id "p.bochkov.rastopchin@icloud.com" \ --password "**************" \ --team-id "2QKDCTR5Y3" \ --wait Conducting pre-submission checks for VIVIDTIME.pkg and initiating connection to the Apple notary service... Submission ID received id: 8c5e3bbf-2938-4ea6-a568-a816a5b0af76 Upload progress: 100,00 % (201 MB of 201 MB) Successfully uploaded file id: 8c5e3bbf-2938-4ea6-a568-a816a5b0af76 path: /Users/innrvoice/Documents/GitHub/vividtime-macos/app/electron/dist/VIVIDTIME.pkg Waiting for processing to complete. Current status: Accepted................ Processing complete id: 8c5e3bbf-2938-4ea6-a568-a816a5b0af76 status: Accepted I checked the notarization xcrun notarytool log 8c5e3bbf-2938-4ea6-a568-a816a5b0af76 \ --apple-id "p.bochkov.rastopchin@icloud.com" \ --password "****************" \ --team-id "2QKDCTR5Y3" { "logFormatVersion": 1, "jobId": "8c5e3bbf-2938-4ea6-a568-a816a5b0af76", "status": "Accepted", "statusSummary": "Ready for distribution", "statusCode": 0, "archiveFilename": "VIVIDTIME.pkg", "uploadDate": "2025-02-18T15:02:34.542Z", "sha256": "d0b2a066555c49f032540aa3bd87852eb106395b8d685097594daef66f52ee53", "ticketContents": [ { "path": "VIVIDTIME.pkg/VIVIDTIME.pkg Contents/Payload/Applications/VIVIDTIME.app/Contents/Frameworks/VIVIDTIME Helper (Plugin).app", "digestAlgorithm": "SHA-256", "cdhash": "7d872ce50e0fe4fdbf77910c19a8582f3ec0dc8c", "arch": "x86_64" }, ... some info skipped..., { "path": "VIVIDTIME.pkg", "digestAlgorithm": "SHA-1", "cdhash": "e5df4a77845f8a931674280e3b1bfd9e86c6004b" } ], "issues": null } I try to staple the .pkg xcrun stapler staple "dist/VIVIDTIME.pkg" Processing: /Users/innrvoice/Documents/GitHub/vividtime-macos/app/electron/dist/VIVIDTIME.pkg Could not validate ticket for /Users/innrvoice/Documents/GitHub/vividtime-macos/app/electron/dist/VIVIDTIME.pkg The staple and validate action failed! Error 65. Thats it. It is always like this whether I try to create a .dmg or .pkg. I tried rebuilding the app, resigning the .app, attaching the notarization ticket manually. Nothing works. And more to that. Here is what I see when I try to simulate the Gatekeeper verification: spctl --assess --type install --verbose=4 dist/VIVIDTIME.pkg dist/VIVIDTIME.pkg: rejected source=Unnotarized Developer ID Could anyone please help me?
Feb ’25
Reply to Issues with Notarization and Stapling
and here is what I get with -v: xcrun stapler staple -v "dist/VIVIDTIME.pkg" Processing: /Users/innrvoice/Documents/GitHub/vividtime-macos/app/electron/dist/VIVIDTIME.pkg Properties are { NSURLIsDirectoryKey = 0; NSURLIsPackageKey = 0; NSURLIsSymbolicLinkKey = 0; NSURLLocalizedTypeDescriptionKey = "Installer flat package"; NSURLTypeIdentifierKey = "com.apple.installer-package-archive"; "_NSURLIsApplicationKey" = 0; } Sig Type is RSA. Length is 3 Sig Type is CMS. Length is 3 Package VIVIDTIME.pkg uses a checksum of size 20 JSON Data is { records = ( { recordName = "2/1/e5df4a77845f8a931674280e3b1bfd9e86c6004b"; } ); } Headers: { "Content-Type" = "application/json"; } Domain is api.apple-cloudkit.com Response is <NSHTTPURLResponse: 0x14da041c0> { 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, 19 Feb 2025 14:21:16 GMT" ); Server = ( "AppleHttpServer/d2dcc6a0a5e3" ); "Strict-Transport-Security" = ( "max-age=31536000; includeSubDomains;" ); "Transfer-Encoding" = ( Identity );
Feb ’25
Reply to Issues with Notarization and Stapling
Downloaded ticket has been stored at file:///var/folders/c3/622zwf656yz6h_v79t4_h8k40000gn/T/f1a6400c-7e79-423d-9638-d20092132813.ticket. Could not validate ticket for /Users/innrvoice/Documents/GitHub/vividtime-macos/app/electron/dist/VIVIDTIME.pkg The staple and validate action failed! Error 65.
Feb ’25
Reply to Issues with Notarization and Stapling
Thank you very much again for you help! Its amazing but seems like it worked on other mac without problem. stapler.txt Now its bugging me, what is the problem with my other mac? All I can say that they are on the same network and that one is m1 and the other is m3. what can cause stapler to always fail on my home m3 macbook pro? can it be related to some installed software or some misconfiguration?
Feb ’25