Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Podfile pre_install hook does not run when prebuild #114

Open
2 tasks done
kientux opened this issue Oct 24, 2022 · 0 comments
Open
2 tasks done

Podfile pre_install hook does not run when prebuild #114

kientux opened this issue Oct 24, 2022 · 0 comments

Comments

@kientux
Copy link
Contributor

kientux commented Oct 24, 2022

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:

image

Output of $ bundle exec pod binary prebuild:

image

Notice it builds frameworks without running the hook, and later will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant