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, Xcode Previews, device support, etc.). -
rules_ios
Contains targets to exercise rules_ios macros and rules. -
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.
Below are some examples outside of this repository that show how to use rules_xcodeproj in various ways. Since these are permalinks, they might not be up-to-date with the latest version of rules_xcodeproj. Please check the latest version on each respective repository.