Coder Social home page Coder Social logo

Comments (4)

keith avatar keith commented on September 20, 2024 1

you probably want a ios_extension target, and then the details that make it a network extension specifically normally come from the Info.plist of that target, which is up to you to provide. The easiest way is probably to create a new network extension target in Xcode and copy the plist from there

from rules_apple.

luispadron avatar luispadron commented on September 20, 2024

Can you be more specific?

from rules_apple.

huangzqh avatar huangzqh commented on September 20, 2024

you probably want a ios_extension target, and then the details that make it a network extension specifically normally come from the Info.plist of that target, which is up to you to provide. The easiest way is probably to create a new network extension target in Xcode and copy the plist from there

I want to add a Network Extension to my app, but I don't seem to be generating Targets successfully. Here is my configuration: `plist_fragment(
name = "VPNTunnelInfoPlist",
extension = "plist",
template =
"""
CFBundleDevelopmentRegion
en
CFBundleIdentifier
{bundle_id}.VPNTunnel
CFBundleName
Telegram
CFBundlePackageType
XPC!
NSExtension

NSExtensionPointIdentifier
com.apple.networkextension.packet-tunnel
NSExtensionPrincipalClass
PacketTunnelProvider

""".format(
bundle_id = bundle_id,
)
)

ios_extension(
name = "VPNTunnelExtension",
bundle_id = "{bundle_id}.VPNTunnel".format(
bundle_id = bundle_id,
),
families = [
"iphone",
"ipad",
],
infoplists = [
":VPNTunnelInfoPlist",
":VersionInfoPlist",
":RequiredDeviceCapabilitiesPlist",
":BuildNumberInfoPlist",
":AppNameInfoPlist",
],
minimum_os_version = minimum_os_version,
entitlements = ":VPNTunnel.entitlements",
frameworks = [

],
)`

from rules_apple.

huangzqh avatar huangzqh commented on September 20, 2024

Can you be more specific?

I want to add a Network Extension to my app, but I don't seem to be generating Targets successfully. Here is my configuration: `plist_fragment(
name = "VPNTunnelInfoPlist",
extension = "plist",
template =
"""
CFBundleDevelopmentRegion
en
CFBundleIdentifier
{bundle_id}.VPNTunnel
CFBundleName
Telegram
CFBundlePackageType
XPC!
NSExtension

NSExtensionPointIdentifier
com.apple.networkextension.packet-tunnel
NSExtensionPrincipalClass
PacketTunnelProvider

""".format(
bundle_id = bundle_id,
)
)

ios_extension(
name = "VPNTunnelExtension",
bundle_id = "{bundle_id}.VPNTunnel".format(
bundle_id = bundle_id,
),
families = [
"iphone",
"ipad",
],
infoplists = [
":VPNTunnelInfoPlist",
":VersionInfoPlist",
":RequiredDeviceCapabilitiesPlist",
":BuildNumberInfoPlist",
":AppNameInfoPlist",
],
minimum_os_version = minimum_os_version,
entitlements = ":VPNTunnel.entitlements",
frameworks = [

],
)`

from rules_apple.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.