<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEAppRule",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEAppRule"
  },
  "title" : "NEAppRule"
}
-->

# NEAppRule

The identity of an app whose traffic is to be routed through the tunnel.

```
class NEAppRule
```

## Topics

### Initializing an app rule

[`-  initWithSigningIdentifier:`](/documentation/NetworkExtension/NEAppRule/init(signingIdentifier:))

Create an app rule that matches an app with a given signing identifier.

[`-  initWithSigningIdentifier:designatedRequirement:`](/documentation/NetworkExtension/NEAppRule/init(signingIdentifier:designatedRequirement:))

Create an app rule that matches an app with a given signing identifier and a given designated requirement.

### Accessing app rule properties

[`matchSigningIdentifier`](/documentation/NetworkExtension/NEAppRule/matchSigningIdentifier)

The signing identifier of the app that matches the rule.

[`matchDesignatedRequirement`](/documentation/NetworkExtension/NEAppRule/matchDesignatedRequirement)

The designated requirement of the app that matches the rule.

[`matchPath`](/documentation/NetworkExtension/NEAppRule/matchPath)

The file system path of the app that matches the rule.

[`matchDomains`](/documentation/NetworkExtension/NEAppRule/matchDomains)

The hostname domains that match the rule.

[`matchTools`](/documentation/NetworkExtension/NEAppRule/matchTools)

An array of app rule objects that restrict the rule so it only matches network traffic generated from helper processes.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)