indygreg / apple-platform-rs

Rust crates supporting Apple platform development
565 stars 38 forks source link

Code directory runtime version getting added too aggressive #100

Closed indygreg closed 10 months ago

indygreg commented 10 months ago

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

indygreg commented 10 months ago

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.)