Skip to content

Commit 871632e

Browse files
Add example for *_build_test in xcschemes.top_level_anchor_target (#2950)
Also works around a bug for libraries that merged into other targets. --------- Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent 35d84b9 commit 871632e

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

examples/integration/Lib/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports_files(
1919

2020
ios_build_test(
2121
name = "ios_Lib",
22-
minimum_os_version = "15.0",
22+
minimum_os_version = "16.0",
2323
tags = ["manual"],
2424
targets = [":Lib"],
2525
visibility = ["@rules_xcodeproj//xcodeproj:generated"],

examples/integration/xcodeproj_targets.bzl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,17 @@ XCSCHEMES = [
251251
],
252252
),
253253
),
254+
xcschemes.scheme(
255+
name = "ios_build_test",
256+
run = xcschemes.run(
257+
build_targets = [
258+
xcschemes.top_level_anchor_target(
259+
"//Lib:ios_Lib",
260+
library_targets = [
261+
"//Lib",
262+
],
263+
),
264+
],
265+
),
266+
),
254267
]

0 commit comments

Comments
 (0)