2.0.0: Incremental generation mode enabled by default
What’s Changed
⚠️ Breaking changes ⚠️
- Changed the default value for
xcodeproj.generation_mode
fromlegacy
toincremental
: #2986 - Removed some deprecated attributes: #2988
New
- Environment variables are now resolved in
bazel_env
: #2983 additional_*_inputs
are now collected as extra files in incremental generation mode: #2972swiftc_inputs
are now collected as extra files in incremental generation mode: #2971
Adjusted
- Reduced work that incremental generation mode installer does for generated directories: #2956 & #2965
- The adjusted
Info.plist
is now used forextension_infoplists
in incremental generation mode: #2966 exec
configuration targets are no longer processed in incremental generation mode: #2968
Fixed
- Indentation related
project_options
are now applied in incremental generation mode: #2959 - Uncategorized files are no longer collected for unfocused targets in incremental generation mode: #2960 & #2982
- Uncategorized files are no longer collected for source-less library targets in incremental generation mode: #2969
- The swift generated header is now excluded from the project in incremental generation mode: #2961
codesign_inputs
are now collected as extra files in incremental generation mode: #2970- Fixed
build_mode
to be setbazel
when passed inNone
or""
: #2987
Ruleset Development Changes
- Locked down distribution to a specific Xcode version: #2954
Full Changelog
Contributors
Bzlmod Snippet
bazel_dep(name = "rules_xcodeproj", version = "2.0.0")
release.tar.gz
’s integrity
: sha256-ZEARdZYhfJ4Fxp7t1MyKprj+4RkbKrRhckF8yi95FiM=
Workspace Snippet
Please use the release asset (release.tar.gz
) from your Bazel WORKSPACE
instead of GitHub's source asset to reduce download size and improve reproducibility.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_xcodeproj",
sha256 = "6440117596217c9e05c69eedd4cc8aa6b8fee1191b2ab46172417cca2f791623",
url = "https://github.com/MobileNativeFoundation/rules_xcodeproj/releases/download/2.0.0/release.tar.gz",
)
load(
"@rules_xcodeproj//xcodeproj:repositories.bzl",
"xcodeproj_rules_dependencies",
)
xcodeproj_rules_dependencies()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)
apple_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()
load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)
apple_support_dependencies()