A timestamp was expected but was not found

We are facing following message "A timestamp was expected but was not found" during codesign for following .dylib and .pkg and it cause notarization process failed.

We are facing this issue for last 3 days.

we have access for timestamp.apple.com and 17.0.0.0/8 and we didn't change firewall settings. We are facing this issue randomly and not for all time(scenario is 3:1).

We tried the below command to sign the package,

codesign --verbose --deep --force --timestamp --options=runtime --sign "<CODE SIGN IDENTITY>" <TO BE SIGNED PACAKGE>

Kindly let us know how to fix this probelm.

traceroute timestamp.apple.com

traceroute to timestamp.v.aaplimg.com (17.157.80.35), 64 hops max, 52 byte packets

....

10 17.0.9.19 (17.0.9.19) 185.693 ms 17.0.9.17 (17.0.9.17) 180.932 ms 189.060 ms

11 * * *

12 17.0.17.141 (17.0.17.141) 191.513 ms * 17.0.17.137 (17.0.17.137) 183.086 ms

13 * * *

14 * * *

Run this in the same environment in which you’re running codesign:

% curl -D /dev/stderr http://timestamp.apple.com

What do you get back? Does it yield the same level of inconsistency, that is, working sometimes and failing others?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I tried to run the command, its output is below:

curl -D /dev/stderr http://timestamp.apple.com
HTTP/1.1 302 Moved Temporarily

Server: Apple

Date: Wed, 16 Oct 2024 03:41:14 GMT

Content-Type: text/html

Content-Length: 138

Connection: keep-alive

Location: https://www.apple.com/certificateauthority/

Host: timestamp.apple.com

X-Content-Type-Options: nosniff

X-Frame-Options: SAMEORIGIN

X-XSS-Protection: 1; mode=block



<html>

<head><title>302 Found</title></head>

<body>

<center><h1>302 Found</h1></center>

<hr><center>Apple</center>

</body>

</html>

but it also stuck with no output after running the command, like 3 out of 5 times.

what's the problem?

I tried to run the command, its output is below:

Thanks. That’s exactly what I see as well.

but it also stuck with no output after running the command, like 3 out of 5 times.

OK, interesting. On my home network (so not at Apple) I can run that command over and over again without it ever getting stuck. That suggests one of three possibilities:

  • There’s something broken on your Mac. For example, I’ve seen problems like this when endpoint security software goes bad.

  • A networking issue between you and the timestamp service.

  • A problem with the timestamp service that only affects a limited set of networks. And that must be a really limited set of networks, because if this were a problem affecting a wide range of networks there would be lots of complaints about it here on DevForums.

IME the third case is very uncommon. To distinguish between the first two, I recommend that you retry this test on a different network. For example, if you’re at work, try it at home, or vice versa. Or set up Personal Hotspot and try it from there. If the same Mac has the same problem no matter which network it’s on, that’s evidence for the first possibility. If the problem goes away when the Mac is on another network, that’s evidence for the second.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

A timestamp was expected but was not found
 
 
Q