bazel-ios / rules_ios

Bazel rules for building iOS applications and frameworks
Apache License 2.0
276 stars 84 forks source link

Failed to add iOS Targets. Procedure #870

Closed huangzqh closed 4 weeks ago

huangzqh commented 4 months ago

I tried to add iOS Targets, but eventually no Targets were generated. Here are my Settings: plist_fragment( name = "VPNTunnelInfoPlist", extension = "plist", template = """

CFBundleDevelopmentRegion
<string>en</string>
<key>CFBundleIdentifier</key>
<string>{bundle_id}.VPNTunnel</string>
<key>CFBundleName</key>
<string>VPNTunnel</string>
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>NSExtension</key>
<dict>
    <key>NSExtensionPointIdentifier</key>
    <string>com.apple.networkextension.packet-tunnel</string>
    <key>NSExtensionPrincipalClass</key>
    <string>PacketTunnelProvider</string>
</dict>
""".format(
    bundle_id = bundle_id,
)

)

ios_extension( name = "VPNTunnel", bundle_id = "{bundle_id}.VPNTunnel".format( bundle_id = bundle_id, ), families = [ "iphone", "ipad", ], infoplists = [ ":VPNTunnelInfoPlist", ":VersionInfoPlist", ":RequiredDeviceCapabilitiesPlist", ":BuildNumberInfoPlist", ":AppNameInfoPlist", ], provisioning_profile = select({ ":disableProvisioningProfilesSetting": None,

"//conditions:default": ":VPNTunnel",

}),
minimum_os_version = minimum_os_version,
entitlements = ":VPNTunnel.entitlements",
deps = [
],
tags = ["manual"],

)