<!--
{
  "availability" : [
    "macOS: 10.11.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NEAppRule/init(signingIdentifier:designatedRequirement:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NEAppRule(im)initWithSigningIdentifier:designatedRequirement:"
  },
  "title" : "init(signingIdentifier:designatedRequirement:)"
}
-->

# init(signingIdentifier:designatedRequirement:)

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

```
init(signingIdentifier: String, designatedRequirement: String)
```

## Parameters

`signingIdentifier`

The signing identifier of the app that matches the rule. For apps that are signed using Xcode, the app’s signing identifier is equivalent to the app’s bundle identifier.

`designatedRequirement`

The designated requirement of the app that matches the rule. The designated requirement for an app can be obtained using the `codesign` command-line developer tool.

## Return Value

A newly-initialized `NEAppRule` object.

---

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)