CI - electron Mac app codesign 报错 A timestamp was expected but was not found.

原文:https://makeoptim.com/ci/codesign-timestamp

  • 问题现象
  • 解决方法
  • 参考链接

问题现象

最近我的 CI 构建一直失败,并报错:"A timestamp was expected but was not found.".

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.

解决方法

尝试切换到另一个网络,比如:另一个 WIFI、手机热点、代理(FQ)等,再重试。

如果没有可用的其他网络,那么请检查下防火墙的规则配置。

参考链接

  • https://github.com/electron-userland/electron-builder/issues/5149
  • https://developer.apple.com/forums/thread/8187
  • https://developer.apple.com/forums/thread/654794
  • https://developer.apple.com/forums/thread/654993
  • https://developer.apple.com/forums/thread/96154

你可能感兴趣的:(CI - electron Mac app codesign 报错 A timestamp was expected but was not found.)