Hello,
My CI builds are failing regularly since July 1st with this codesign error: "A timestamp was expected but was not found.".
The Mac app has a few frameworks which are properly signed, and sometimes it gets through the signing process but fails at a seemingly random code signing command with this error.
I have checked and the signing certificate (Developer ID) expires in 2017. I also made sure that the CI servers had their time set automatically using the time.apple.com servers to prevent clock drift.
Short of disabling timestamps with --timestamp none in the codesign command, is there anything I can do? Am I tied to Apple's timestamp servers' whims?
Thanks for any insight,
Philippe
[Updating for posterity]
We finally got this resolved internally. Turns out that some firewall rules were implemented without our knowledge a few days prior, and those rules started to drop only some of the replies from Apple's code-signing servers, leading to the abovementioned failures.
The intermittent nature of the failures made us not believe it was a networking issue, but in fact it was.
So in our case, we had to audit our corporate firewall and make sure that our own networking was OK. If you get these spurious errors, I suggest you do the same.