teamid

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package teamid provides Apple Developer Team ID detection and validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoSubstituteTeamIDInGroups

func AutoSubstituteTeamIDInGroups(groups []string) (string, int, error)

AutoSubstituteTeamIDInGroups automatically detects the team ID and substitutes "TEAMID" placeholders in app group identifiers. This combines DetectTeamID and SubstituteTeamIDInGroups for convenience.

Returns the detected team ID and the number of substitutions made, or an error if team ID detection fails.

func DetectTeamID

func DetectTeamID() (string, error)

DetectTeamID attempts to automatically detect the Apple Developer Team ID from installed code signing certificates.

It searches for Developer ID Application certificates in the system keychain and extracts the team ID from the certificate information. The team ID is typically a 10-character alphanumeric string in parentheses.

Returns the detected team ID or an error if no valid certificate is found.

func IsValidTeamID

func IsValidTeamID(teamID string) bool

IsValidTeamID checks if a string is a valid Apple Developer Team ID. Team IDs are 10-character alphanumeric strings containing only uppercase letters and digits.

func SubstituteTeamIDInGroups

func SubstituteTeamIDInGroups(groups []string, teamID string) int

SubstituteTeamIDInGroups replaces "TEAMID" placeholders in app group identifiers with the provided team ID. This is useful for creating app groups that work across different developer accounts.

The function modifies the groups slice in place and returns the number of substitutions made.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL