cocoapods-binary icon indicating copy to clipboard operation
cocoapods-binary copied to clipboard

Optimise build time by reuse built dependencies frameworks

Open bigbangvn opened this issue 5 years ago • 1 comments

I noticed that build_framework.rb is very slow, it calls xcodebuild for all the frameworks that we need to build. But we can optimize, eg. we have framework A, B, C, and the dependencies are A -> B -> C. (the arrow means depends on). When we build A => B, C will be built also. And when we build B, we can check if B.framework already exist to skip building it. That simple optimization can make the build process faster.

bigbangvn avatar Jan 08 '20 10:01 bigbangvn

I noticed that build_framework.rb is very slow, it calls xcodebuild for all the frameworks that we need to build. But we can optimize, eg. we have framework A, B, C, and the dependencies are A -> B -> C. (the arrow means depends on). When we build A => B, C will be built also. And when we build B, we can check if B.framework already exist to skip building it. That simple optimization can make the build process faster.

I have the same problem .

sunqingquan avatar Sep 10 '20 03:09 sunqingquan