问题现象
最近我的 CI 构建一直失败,并报错:“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.
解决方法
尝试切换到另一个网络,比如:另一个 WIFI、手机热点、代理(FQ)等,再重试。
如果没有可用的其他网络,那么请检查下防火墙的规则配置。