leavez / cocoapods-binary

integrate pods in form of prebuilt frameworks conveniently, reducing compile time
MIT License
1.31k stars 206 forks source link

Is it possible to build static framework? #140

Closed buptwsg closed 3 years ago

buptwsg commented 3 years ago

Hi there, I want to use this plugin to reduce build time, but I'm afraid that dynamic frameworks will slow down my app boot. Why does this plugin only support dynamic frameworks? Is there any limitation?

Thanks!

buptwsg commented 3 years ago

This question is invalid, because I've found the answer: add post installer hook to Podfile, and in the hook, change building setting MACH_O_TYPE to 'staticlib'.

config.build_settings['MACH_O_TYPE'] = 'staticlib'