Skip to content

Commit bc1ecdd

Browse files
committed
Upgrade to rules_apple 3.16.1
Needed to support Bazel 8. Signed-off-by: Brentley Jones <[email protected]>
1 parent 53036fa commit bc1ecdd

File tree

14 files changed

+72
-36
lines changed

14 files changed

+72
-36
lines changed

MODULE.bazel

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ bazel_dep(
1616
)
1717
bazel_dep(
1818
name = "rules_apple",
19-
version = "3.6.0",
19+
version = "3.16.1",
2020
repo_name = "build_bazel_rules_apple",
2121
)
2222
bazel_dep(name = "rules_python", version = "0.27.1")
@@ -56,11 +56,6 @@ bazel_dep(
5656
)
5757

5858
# To support Bazel 8 tests
59-
single_version_override(
60-
module_name = "rules_apple",
61-
version = "3.5.1",
62-
)
63-
6459
single_version_override(
6560
module_name = "rules_swift",
6661
version = "1.18.0",
@@ -71,6 +66,12 @@ single_version_override(
7166
version = "1.15.1",
7267
)
7368

69+
# Some of our deps are forcing a new stardoc on us, so pinning for now
70+
single_version_override(
71+
module_name = "stardoc",
72+
version = "0.6.1",
73+
)
74+
7475
# For Stardoc
7576
single_version_override(
7677
module_name = "bazel_skylib",

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ to include it in the list above.
8080

8181
| rules_xcodeproj | Bazel | [rules_apple][1] | [rules_swift][2] | Xcode | macOS | Supporting Branch |
8282
| :-------------: | :---: | :--------------: | :--------------: | :---: | :---: | :---------------: |
83-
| 1.17.0+ | 6.3-7.x | 1.0.1–2.x | 1.x | 13.3–15.x | 13–14.x | `main` |
83+
| 2.10.0+ | 7.0-8.x | 3.16.1+ | 1.18.0+ | 13.3–15.x | 13–14.x | `main` |
84+
| 1.17.0+ | 6.3-7.x | 1.0.1–2.x | 1.x | 13.3–15.x | 13–14.x | - |
8485
| 1.16.0 | 6.3-7.x | 1.0.1–2.x | 1.x | 13.3–15.2 | 13–14.x | - |
8586
| 1.14.0-1.15.0 | 6.1-7.x | 1.0.1–2.x | 1.x | 13.3–15.2 | 13–14.x | - |
8687
| 1.7.0-1.13.0 | 5.3–6.x | 1.0.1–2.x | 1.x | 13.3–15.2 | 12–13.x | - |

examples/integration/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bazel_dep(
1010
)
1111
bazel_dep(
1212
name = "rules_apple",
13-
version = "3.6.0",
13+
version = "3.16.1",
1414
repo_name = "build_bazel_rules_apple",
1515
)
1616
bazel_dep(

examples/integration/iOSApp/external/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ module(
66

77
bazel_dep(
88
name = "rules_apple",
9-
version = "2.1.0",
9+
version = "3.16.1",
1010
repo_name = "build_bazel_rules_apple",
1111
)

examples/rules_ios/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ bazel_dep(
1010
)
1111
bazel_dep(
1212
name = "rules_apple",
13-
version = "3.2.1",
13+
version = "3.16.1",
1414
repo_name = "build_bazel_rules_apple",
1515
)
1616
bazel_dep(

xcodeproj/internal/compilation_providers.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ def _merge_compilation_providers(
186186
"""Merges compilation providers from the deps of a target.
187187
188188
Args:
189-
apple_dynamic_framework_info: The
190-
`apple_common.AppleDynamicFrameworkInfo` of the target, or `None`.
189+
apple_dynamic_framework_info: The `AppleDynamicFrameworkInfo` of the
190+
target, or `None`.
191191
cc_info: The `CcInfo` of the target, or `None`.
192192
propagate_providers: A `bool` indicating whether providers should be
193193
propagated to downstream targets.

xcodeproj/internal/files/incremental_input_files.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ def _collect_incremental_input_files(
262262
avoid_deps: A `list` of the targets that already consumed resources, and
263263
their resources shouldn't be bundled with the target.
264264
framework_files: A `depset` of framework files from
265-
`AppleDynamicFramework.framework_files`, if the target has the
266-
`AppleDynamicFramework` provider.
265+
`AppleDynamicFrameworkInfo.framework_files`, if the target has the
266+
`AppleDynamicFrameworkInfo` provider.
267267
focused_labels: A `depset` of label strings of focused targets. This
268268
will include the current target (if focused) and any focused
269269
dependencies of the current target. This is only set for top-level
@@ -955,8 +955,8 @@ def _merge_top_level_input_files(
955955
will include the current target (if focused) and any focused
956956
dependencies of the current target.
957957
framework_files: A `depset` of framework files from
958-
`AppleDynamicFramework.framework_files`, if the target has the
959-
`AppleDynamicFramework` provider.
958+
`AppleDynamicFrameworkInfo.framework_files`, if the target has the
959+
`AppleDynamicFrameworkInfo` provider.
960960
platform: A value from `platforms.collect`.
961961
resource_info: The `AppleResourceInfo` provider for the target if it is
962962
resource bundle consuming.

xcodeproj/internal/files/incremental_output_files.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _get_outputs(*, debug_outputs, product, swift_info, output_group_info):
5151
indexing process.
5252
5353
Args:
54-
debug_outputs: The `AppleDebugOutputs` provider for the target, or
54+
debug_outputs: The `AppleDebugOutputsInfo` provider for the target, or
5555
`None`.
5656
output_group_info: The `OutputGroupInfo` provider for the target, or
5757
`None`.
@@ -143,7 +143,7 @@ def _collect_incremental_output_files(
143143
copy_product_transitively: Whether or not to copy the product
144144
transitively. Currently this should only be true for top-level
145145
targets.
146-
debug_outputs: The `AppleDebugOutputs` provider for the target, or
146+
debug_outputs: The `AppleDebugOutputsInfo` provider for the target, or
147147
`None`.
148148
id: A unique identifier for the target.
149149
indexstore_overrides: A `list` of `(indexstore, target_name)` `tuple`s

xcodeproj/internal/files/legacy_output_files.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _get_outputs(*, debug_outputs, id, product, swift_info, output_group_info):
5050
indexing process.
5151
5252
Args:
53-
debug_outputs: The `AppleDebugOutputs` provider for the target, or
53+
debug_outputs: The `AppleDebugOutputsInfo` provider for the target, or
5454
`None`.
5555
id: The unique identifier of the target.
5656
output_group_info: The `OutputGroupInfo` provider for the target, or
@@ -137,7 +137,7 @@ def _collect_legacy_output_files(
137137
copy_product_transitively: Whether or not to copy the product
138138
transitively. Currently this should only be true for top-level
139139
targets.
140-
debug_outputs: The `AppleDebugOutputs` provider for the target, or
140+
debug_outputs: The `AppleDebugOutputsInfo` provider for the target, or
141141
`None`.
142142
id: A unique identifier for the target.
143143
output_group_info: The `OutputGroupInfo` provider for the target, or

xcodeproj/internal/processed_targets/incremental_library_targets.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Functions for processing library targets."""
22

33
load("@bazel_skylib//rules:common_settings.bzl", "BuildSettingInfo")
4+
load("@build_bazel_rules_apple//apple:providers.bzl", "AppleDebugOutputsInfo")
45
load("@build_bazel_rules_swift//swift:swift.bzl", "SwiftInfo", "SwiftProtoInfo")
56
load("//xcodeproj/internal:build_settings.bzl", "get_product_module_name")
67
load("//xcodeproj/internal:compilation_providers.bzl", "compilation_providers")
@@ -154,8 +155,8 @@ def _process_incremental_library_target(
154155
] if not swift_debug_settings_file else None,
155156
)
156157

157-
if apple_common.AppleDebugOutputs in target:
158-
debug_outputs = target[apple_common.AppleDebugOutputs]
158+
if AppleDebugOutputsInfo in target:
159+
debug_outputs = target[AppleDebugOutputsInfo]
159160
else:
160161
debug_outputs = None
161162

0 commit comments

Comments
 (0)