使用 BUCK 改善編譯速度 - Qing-Cheng Li === {%hackmd FGRWt1UuTFKk0wSbGgg-SA %} ## YouTube {%youtube COnTdll8lgE %} ## Slide {%speakerdeck qcl/using-buck-to-save-ios-project-build-time %} [Demo source code](https://speakerdeck.com/qcl/using-buck-to-save-ios-project-build-time) [Demo Buck cache server](https://github.com/qcl/simple-buck-cache-server/) --- 省下泡一杯咖啡的時間 有些文件沒有更新,最好看看 source code 聲稱用了buck就可以不用clean build ## Build Rules * Describe how to produce an output file from input files. ## Build Target * A string that uniquely identifies a build rule. * It can be thought of as a URI for the build rule within the Buck project. * Example: * Buck file path between // to : ## Build Files * 放定義好的build rules ![](https://i.imgur.com/vuWye4J.jpg) ![](https://i.imgur.com/w6TYK6v.jpg) ![](https://i.imgur.com/RODJuPP.jpg) ![](https://i.imgur.com/JdhfTmc.jpg) ![](https://i.imgur.com/Xorh97U.jpg) ![](https://i.imgur.com/a4WadyS.jpg) ![](https://i.imgur.com/2cNBEbr.jpg) ![](https://i.imgur.com/ncNJmS9.jpg) ![](https://i.imgur.com/2Xhj3rv.jpg) ![](https://i.imgur.com/YVJYydM.jpg) ![](https://i.imgur.com/6EYdNjj.jpg) ![](https://i.imgur.com/vfOR2nJ.jpg) ![](https://i.imgur.com/lWNDWFB.jpg) ![](https://i.imgur.com/7XOaEdw.jpg) ![](https://i.imgur.com/JzRuesH.jpg) ![](https://i.imgur.com/JaB7Sd7.jpg) ## Reference: * [https://github.com/facebook/buck](https://github.com/qcl/QCourse-Buck) * [https://buck.build/](https://github.com/qcl/QCourse-Buck) * [https://github.com/qcl/QCourse-Buck](https://github.com/qcl/QCourse-Buck) ###### tags:`iPlayground2019`