<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "XPC",
  "identifier" : "/documentation/XPC/XPCPeerRequirement/isPlatformCode(andMatchesSigningIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "XPC"
    ],
    "preciseIdentifier" : "s:3XPC18XPCPeerRequirementV14isPlatformCode27andMatchesSigningIdentifierACSSSg_tFZ"
  },
  "title" : "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.

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

## Return Value

A `XPCPeerRequirement` object representing the requirement

## Discussion

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

---

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)