File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments