macOS SDK directory has a weird futuristic timestamp

Originator:mark
Number:rdar://32924313 Date Originated:2017-06-22
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9b2 (9M137d)
Classification:Other Bug Reproducible:Always
 
In Xcode 9 beta 2 (9M137d), the MacOSX.sdk directory has a weird timestamp. It purports to be from far in the future.

litterbox@litterbox zsh% TZ=UTC ls -ldT /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
drwxr-xr-x  5 root  wheel  160 Dec 29 13:43:44 2098 /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

This is a time_t of 4070699024, or octal 036250370020. I found that octal value stored for the timestamp of this directory in the cpio archive headers within Xcode_9_beta_2.xip. This weird timestamp is coming from Xcode_9_beta_2.xip.

The first Xcode 9 beta (9M136h) had another weird timestamp for this directory, but in 2068 instead of 2098.

litterbox@litterbox zsh% xcodebuild -version
Xcode 9.0
Build version 9M137d

Steps to Reproduce:
Download Xcode_9_beta_2.xip and double-click it. Archive Utility will expand it. Look at the timestamp of Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk.

Expected Results:
The timestamp should be plausible.

Observed Results:
The timestamp is not plausible. For Xcode 9 beta 2, it’s from December 2098.

Version:
Xcode 9b2 (9M137d)

Comments

2017-07-25 20:22 UTC to Apple

This has persisted in Xcode 9 betas 3 and 4.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!