leavez / cocoapods-binary

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

Optimise build time by reuse built dependencies frameworks #114

Open bigbangvn opened 4 years ago

bigbangvn commented 4 years ago

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.

sunqingquan commented 3 years ago

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 .