<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LightweightCodeRequirements",
  "identifier" : "/documentation/LightweightCodeRequirements/TeamIdentifierMatchesCurrentProcess",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "LightweightCodeRequirements"
    ],
    "preciseIdentifier" : "s:27LightweightCodeRequirements35TeamIdentifierMatchesCurrentProcessV"
  },
  "title" : "TeamIdentifierMatchesCurrentProcess"
}
-->

# TeamIdentifierMatchesCurrentProcess

A constraint that matches if a process has the same team identifier as the calling process.

```
struct TeamIdentifierMatchesCurrentProcess
```

## Topics

### Initializers

[`init()`](/documentation/LightweightCodeRequirements/TeamIdentifierMatchesCurrentProcess/init())

Creates a constraint that matches the current process’s team identifier.

[`init(Bool)`](/documentation/LightweightCodeRequirements/TeamIdentifierMatchesCurrentProcess/init(_:))

Creates a constraint that tests whether a process’s team identifier matches the current process’s team identifier.

[`init(from: any Decoder) throws`](/documentation/LightweightCodeRequirements/TeamIdentifierMatchesCurrentProcess/init(from:))

Create a new constraint by decoding from the given decoder

### Instance Methods

[`func encode(to: any Encoder) throws`](/documentation/LightweightCodeRequirements/TeamIdentifierMatchesCurrentProcess/encode(to:))

Encodes this constraint into the given encoder.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`ProcessConstraint`](/documentation/LightweightCodeRequirements/ProcessConstraint)

---

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)