Skip to content

Commit

Permalink
Support new path for provisioning profiles (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
adincebic authored Sep 24, 2024
1 parent 08f5805 commit e12f3a5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apple/internal/local_provisioning_profiles.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ def _provisioning_profile_repository(repository_ctx):
repository_ctx.execute(["mkdir", "-p", system_profiles_path])
repository_ctx.symlink(system_profiles_path, "profiles")

# Since Xcode 16 there is a new location for the provisioning profiles.
# We need to keep the both old and new path for quite some time.
user_profiles_path = "{}/Library/Developer/Xcode/UserData/Provisioning Profiles".format(repository_ctx.os.environ["HOME"])
repository_ctx.execute(["mkdir", "-p", user_profiles_path])
repository_ctx.symlink(user_profiles_path, "user profiles")

repository_ctx.file("BUILD.bazel", """\
filegroup(
name = "profiles",
srcs = glob(["profiles/*.mobileprovision"], allow_empty = True),
srcs = glob([
"profiles/*.mobileprovision",
"user profiles/*.mobileprovision",
], allow_empty = True),
visibility = ["//visibility:public"],
)
Expand Down

0 comments on commit e12f3a5

Please sign in to comment.