Checklist
Description
Sometimes we have a outdated library, or a library that doesn't compile when a new Xcode is released, and we want to do a temporary pre_install hook that modify the lib source code. When cocoapods-binary-cache run its prebuild step, it will run pod install again without running pre_install hook, and it will fail to build the lib.
For example, old version of Charts doesn't compile with Xcode 14. I added a hook to modify its source and log a message.
Output of $ bundle exec pod install:

Output of $ bundle exec pod binary prebuild:

Notice it builds frameworks without running the hook, and later will fail.
Checklist
Description
Sometimes we have a outdated library, or a library that doesn't compile when a new Xcode is released, and we want to do a temporary
pre_installhook that modify the lib source code. Whencocoapods-binary-cacherun itsprebuildstep, it will run pod install again without runningpre_installhook, and it will fail to build the lib.For example, old version of
Chartsdoesn't compile with Xcode 14. I added a hook to modify its source and log a message.Output of
$ bundle exec pod install:Output of
$ bundle exec pod binary prebuild:Notice it builds frameworks without running the hook, and later will fail.