Skip to content

Commit e12f3a5

Browse files
authored
Support new path for provisioning profiles (#2544)
1 parent 08f5805 commit e12f3a5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

apple/internal/local_provisioning_profiles.bzl

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ def _provisioning_profile_repository(repository_ctx):
1010
repository_ctx.execute(["mkdir", "-p", system_profiles_path])
1111
repository_ctx.symlink(system_profiles_path, "profiles")
1212

13+
# Since Xcode 16 there is a new location for the provisioning profiles.
14+
# We need to keep the both old and new path for quite some time.
15+
user_profiles_path = "{}/Library/Developer/Xcode/UserData/Provisioning Profiles".format(repository_ctx.os.environ["HOME"])
16+
repository_ctx.execute(["mkdir", "-p", user_profiles_path])
17+
repository_ctx.symlink(user_profiles_path, "user profiles")
18+
1319
repository_ctx.file("BUILD.bazel", """\
1420
filegroup(
1521
name = "profiles",
16-
srcs = glob(["profiles/*.mobileprovision"], allow_empty = True),
22+
srcs = glob([
23+
"profiles/*.mobileprovision",
24+
"user profiles/*.mobileprovision",
25+
], allow_empty = True),
1726
visibility = ["//visibility:public"],
1827
)
1928

0 commit comments

Comments
 (0)