indygreg/apple-platform-rs

Code directory runtime version getting added too aggressive

indygreg opened this issue · 1 comments

Found this in #95. We're adding the runtime version to the CD data structure too aggressive compared to Apple's tooling.

This was due to the codesign invocations in the reproduce script in #95 not passing --preserve-metadata=runtime. When we add this, the CD version is the same since the executable segment flags are identical.

(rcodesign and maybe codesign automatically downgrade the CD version to the minimum version necessary to express the features presence in the signature. This provides maximum binary runtime compatibility.)