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

# isFromSameTeam(andMatchesSigningIdentifier:)

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.

## Declaration

```swift
static func isFromSameTeam(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
