bogo / arm64-to-sim

Transmogrify native iOS frameworks to run in iOS Simulator on Apple silicon.
https://bogo.wtf/arm64-to-sim.html
MIT License
532 stars 86 forks source link

Make separate "create" and "update" functions for `LC_BUILD_VERSION` #16

Open igor-makarov opened 2 years ago

igor-makarov commented 2 years ago

This fixes an issue where a library (GoogleMaps) has a LC_BUILD_VERSION command with a non-default size. Creation of a new section in this case was causing a corruption of offsets. When the command already exists, it's better to patch it instead of overwriting.