BuckSample icon indicating copy to clipboard operation
BuckSample copied to clipboard

[PSA] Airbnb iOS has migrated to Bazel

Open qyang-nj opened this issue 2 years ago • 5 comments

Airbnb iOS has migrated the build system from Buck to Bazel. Since we will no longer use Buck internally, we are going to archive this BuckSample repo.

qyang-nj avatar May 03 '23 23:05 qyang-nj

@qyang-nj , will there be a Bazel sample?

Also, what is the impetus behind moving to Bazel at Airbnb?

winstondu avatar Mar 06 '25 21:03 winstondu

@winstondu There are plenty of Bazel examples available, such as those in bazelbuild/rules_apple.

We detailed the reasons behind and the process of our migration from Buck to Bazel in this blog post. Hopefully, you find it helpful.

qyang-nj avatar Mar 10 '25 16:03 qyang-nj

@qyang-nj I'm curious though-- How does building via bazel support intelligent IDE features like goto definition or intellisense?

Do you still use XCode's symbol indexing to support your iOS developers?

winstondu avatar May 26 '25 19:05 winstondu

@winstondu Yes, of course we support indexing in Xcode. There are a few approaches to support it. If you're new to Bazel on iOS, I recommend taking a look at https://github.com/MobileNativeFoundation/rules_xcodeproj

qyang-nj avatar May 27 '25 17:05 qyang-nj

I think my question is predicated on whether some of your iOS Engineers use something other than xcode as the IDE.

For example, if some are using VSCode, how are you ensuring Bazel communicates with sourcekit-lsp?

winstondu avatar May 27 '25 18:05 winstondu