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 ¶
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 ¶
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 ¶
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 ¶
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.