faq,

CI - electron Mac app codesign reports an error A timestamp was expected but was not found.

中文阅读

Problem Description

Recently my CI builds have been failing regularly with this codesign error: “A timestamp was expected but was not found.”.

1
2
3
4
5
6
7
signing         file=dist/mac/XXX.app identityName=Developer ID Application: XXX Co., Ltd. (XXX8AWFXXX) identityHash=DA3F2C4C71A181EB35CA8D228CAE6A3817BD0A4C provisioningProfile=none

  ⨯ Command failed: codesign --sign DA3F2C4C71A181EB35CA8D228CAE6A3817BD0A4C --force --timestamp --options runtime ...... --entitlements buildResources/entitlements.mac.plist /Users/ci/jenkins/workspace/test_main/dist/mac/XXX.app/Contents/buildResources/esptool/mac/lib-dynload/math.cpython-38-darwin.so

/Users/ci/jenkins/workspace/test_main/dist/mac/XXX.app/Contents/buildResources/esptool/mac/lib-dynload/math.cpython-38-darwin.so: replacing existing signature

/Users/ci/jenkins/workspace/test_main/dist/mac/XXX.app/Contents/buildResources/esptool/mac/lib-dynload/math.cpython-38-darwin.so: A timestamp was expected but was not found.

Solution

Try a different network, e.g. connect to another Wifi, mobile hotspot, proxy, etc., and try again.

If there is no other available network, please check the firewall rules.

Reference


CatchZeng
Written by CatchZeng Follow
AI (Machine Learning) and DevOps enthusiast.