---
title: "isPlatformCode(andMatchesSigningIdentifier:)"
framework: xpc
role: symbol
role_heading: Type Method
path: "xpc/xpcpeerrequirement/isplatformcode(andmatchessigningidentifier:)"
---

# isPlatformCode(andMatchesSigningIdentifier:)

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

## Declaration

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

## Return Value

Return Value A XPCPeerRequirement object representing the requirement

## Discussion

Discussion andMatchesSigningIdentifier: If non-nil, The signing identifier the peer must have
