<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LightweightCodeRequirements",
  "identifier" : "/documentation/LightweightCodeRequirements/TeamIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "LightweightCodeRequirements"
    ],
    "preciseIdentifier" : "s:27LightweightCodeRequirements14TeamIdentifierV"
  },
  "title" : "TeamIdentifier"
}
-->

# TeamIdentifier

A constraint that tests whether the provided team identifier matches the team identified in the code signature.

```
struct TeamIdentifier
```

## Topics

### Initializers

[`init(String)`](/documentation/LightweightCodeRequirements/TeamIdentifier/init(_:))

Matches if the provided string matches the team identifier of the code.

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

Create a new instance by decoding from the given decoder

### Instance Methods

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

Encodes this value into the given encoder

### Type Aliases

[`typealias DataType`](/documentation/LightweightCodeRequirements/TeamIdentifier/DataType)

The basic input data type for this constraint: String.

[`typealias OutType`](/documentation/LightweightCodeRequirements/TeamIdentifier/OutType)

The type of this constraint: [`TeamIdentifier`](/documentation/LightweightCodeRequirements/TeamIdentifier).

### Type Methods

[`static func `in`([TeamIdentifier.DataType]) -> TeamIdentifier.OutType`](/documentation/LightweightCodeRequirements/TeamIdentifier/in(_:)-1z4vz)

Matches if the team identifier of the code matches any of the provided team identifiers.

[`static func `in`(TeamIdentifier.DataType...) -> TeamIdentifier.OutType`](/documentation/LightweightCodeRequirements/TeamIdentifier/in(_:)-9x3l9)

Matches if the team identifier of the code matches any of the provided team identifiers.

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)