使用 Bazel 进行自动代码签名管理

问题描述 投票:0回答:1

如何在使用自动代码签名管理的iOS项目中使用自动代码签名管理?我看到

local_provisioning_profile
规则
apple_rules
仓库的唯一方法。 Bazel 是否支持自动代码签名?

ios bazel provisioning-profile
1个回答
0
投票
  • 确保您使用的是最新版本的
    rules_xcodeproj
    (撰写此消息时为 1.12.1)
  • 在你的 BUILD.bazel 文件中:
load("@rules_xcodeproj//xcodeproj:defs.bzl", 
    "top_level_target",
    "xcodeproj",
    "xcode_provisioning_profile",
)

load("@build_bazel_rules_apple//apple:apple.bzl", 
    "local_provisioning_profile")


ios_application(
    <..>
    provisioning_profile = ":xcode_profile",
    <..>
)


local_provisioning_profile(
    name = "the_profile",
    profile_name = "<profile name>",
    team_id = "<team_id>",
)

xcode_provisioning_profile(
   name = "xcode_profile",
   team_id = "<team_id>",
   managed_by_xcode = True,
   provisioning_profile = ":the_profile",
)

© www.soinside.com 2019 - 2024. All rights reserved.