← XPC

XPCPeerRequirement

XPC Dokümantasyonu

struct XPCPeerRequirement

Initializers

Type Methods

  • codeRequirement(_:)) static func codeRequirement(ProcessCodeRequirement) -> XPCPeerRequirement — Create an XPCPeerRequirement from a ProcessCodeRequirement
  • entitlement(_:matches:)-2bray) static func entitlement(String, matches: String) -> XPCPeerRequirement — Create a requirement that the peer has the specified entitlement with the matching string value
  • entitlement(_:matches:)-2ubq1) static func entitlement(String, matches: Int) -> XPCPeerRequirement — Create a requirement that the peer has the specified entitlement with the matching integer value
  • entitlement(_:matches:)-6h77e) static func entitlement(String, matches: Bool) -> XPCPeerRequirement — Create a requirement that the peer has the specified entitlement with the matching bool value
  • hasEntitlement(_:)) static func hasEntitlement(String) -> XPCPeerRequirement — Create a requirement that the peer has the specified entitlement
  • isFromSameTeam(andMatchesSigningIdentifier:)) static func isFromSameTeam(andMatchesSigningIdentifier: String?) -> XPCPeerRequirement — Create a requirement that the peer is signed with the same team identifier as the current process. If provided, additionally requires that the peer has the specified signing identifier.
  • isPlatformCode(andMatchesSigningIdentifier:)) static func isPlatformCode(andMatchesSigningIdentifier: String?) -> XPCPeerRequirement — Create a requirement that the peer is platform binary. If provided, additionally requires that the peer has the specified signing identifier.

Relationships

Conforms To


codeRequirement(_:)

Type Method | XPC

Create an XPCPeerRequirement from a ProcessCodeRequirement

static func codeRequirement(_ requirement: ProcessCodeRequirement) -> XPCPeerRequirement

entitlement(_:matches:)

Type Method | XPC

Create a requirement that the peer has the specified entitlement with the matching integer value

static func entitlement(_ entitlement: String, matches value: Int) -> XPCPeerRequirement

A XPCPeerRequirement object representing the requirement


entitlement(_:matches:)

Type Method | XPC

Create a requirement that the peer has the specified entitlement with the matching string value

static func entitlement(_ entitlement: String, matches value: String) -> XPCPeerRequirement

A XPCPeerRequirement object representing the requirement


hasEntitlement(_:)

Type Method | XPC

Create a requirement that the peer has the specified entitlement

static func hasEntitlement(_ entitlement: String) -> XPCPeerRequirement

A XPCPeerRequirement object representing the requirement


init(lightweightCodeRequirements:)

Initializer | XPC

init(lightweightCodeRequirements dictionary: XPCDictionary)

entitlement(_:matches:)

Type Method | XPC

Create a requirement that the peer has the specified entitlement with the matching bool value

static func entitlement(_ entitlement: String, matches value: Bool) -> XPCPeerRequirement

A XPCPeerRequirement object representing the requirement


isFromSameTeam(andMatchesSigningIdentifier:)

Type Method | XPC

Create a requirement that the peer is signed with the same team identifier as the current process. If provided, additionally requires that the peer has the specified signing identifier.

static func isFromSameTeam(andMatchesSigningIdentifier: String? = nil) -> XPCPeerRequirement

A XPCPeerRequirement object representing the requirement


isPlatformCode(andMatchesSigningIdentifier:)

Type Method | XPC

Create a requirement that the peer is platform binary. If provided, additionally requires that the peer has the specified signing identifier.

static func isPlatformCode(andMatchesSigningIdentifier: String? = nil) -> XPCPeerRequirement

A XPCPeerRequirement object representing the requirement