Buck build system for iOS Tutorial

Jul 9, 2017 10:05 · 197 words · 1 minute read Development Tutorial iOS Swift

Buck is a build system created by facebook and it is also used by Uber and Airbnb to increase their productivity by speed up the Build Time.

Installation

Buck can be installed on mac using homebrew

brew tap facebook/fb
brew install buck

Setup Buck for the ios app

To use Buck for iOS put the .buckconfig and BUCK file in the ios root project, from the gist below (please note “Palmerah” is an Swift iOS project that using Buck, please adjust the folder name and file)

To adjust xcode properly with buck, go to root folder and type

buck project --ide xcode

Build / Run app using Buck

To build the app, go to the xcode project root folder and type

buck build :App

To build the app and run it on the simulator, go to the xcode project root folder and type

buck install --run :App

Happy Buck-ing

Reference:

Android

iOS