This directory holds several examples using rules_xcodeproj. To open an example, run the bazel run //:xcodeproj
command from within each directory, then run xed .
to open the generated project.
-
cc
Contains a command line tool written purely in C, exercising many possible use cases of the cc rules in Bazel (consumescc_binary
,cc_library
, externalcc_library
). -
integration
Contains many targets to exercise all of the rules_apple rules, along with various ways of using rules_xcodeproj itself (e.g. multi-platform consolidated targets, SwiftUI Previews, device support, etc.). -
sanitizers
Contains targets to test Sanitizers in BwB mode. The main purpose is to make sure sanitizers in BwB mode work and give UI feedback the same way sanitizers do in BwX builds. -
simple
Contains a "Hello World"swift_binary
target. This example's main purpose is to have a target withoutBazel External Repositories
orBazel Generated Files
groups in Xcode, and noBazelDependencies
target in BwX mode.