Environment:777genius Agent teams ai Apple Developer Account
| Knowledge Sources | |
|---|---|
| Domains | Infrastructure, Security, Code_Signing |
| Last Updated | 2026-10-22 00:00 GMT |
Overview
Apple Developer Program account with App Store Connect API credentials for code signing and notarization of the macOS distribution.
Description
An Apple Developer Program membership is required to sign and notarize the macOS build of the agent-teams app. The notarization process uses App Store Connect API keys (not Apple ID credentials) with the `notarytool` utility. The signing team is pinned to `86399583GS`. API keys are stored as `.p8` files and referenced via environment variables. The notarization hook validates all three credentials are present before attempting submission and refuses to proceed if the team ID does not match.
Usage
Use this environment whenever building macOS distributions that require code signing and notarization.
System Requirements
| Category | Requirement | Notes | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Account | Apple Developer Program | Active membership required | Team ID | `86399583GS` | Hardcoded validation in notarize.cjs | API Key | App Store Connect API key (.p8 file) | Created in App Store Connect | Key ID | API key identifier | Paired with the .p8 file | Issuer ID | Issuer UUID | From App Store Connect |
Dependencies
System Packages
- Apple Developer signing certificate (installed in Keychain)
Node.js Packages
- `@electron/notarize` >= 2.x (uses `notarytool` internally)
Credentials
- `APPLE_API_KEY` — Path to the App Store Connect API key `.p8` file
- `APPLE_API_KEY_ID` — The 10-character API key ID
- `APPLE_API_ISSUER` — The issuer UUID
- `APPLE_TEAM_ID` — Must equal `86399583GS`
NEVER commit these credentials to the repository.
Quick Install
# Create an App Store Connect API key at:
# https://appstoreconnect.apple.com/access/api
# Set environment variables before building:
export APPLE_API_KEY=/path/to/AuthKey_XXXXXXXXXX.p8
export APPLE_API_KEY_ID=XXXXXXXXXX
export APPLE_API_ISSUER=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
export APPLE_TEAM_ID=86399583GS
# Build and notarize
pnpm dist:mac:arm64
Code Evidence
Credential validation from `scripts/notarize.cjs:7-12`:
if (!process.env.APPLE_API_KEY || !process.env.APPLE_API_KEY_ID || !process.env.APPLE_API_ISSUER) {
throw new Error('Apple notarization API credentials are required');
}
if (process.env.APPLE_TEAM_ID !== '86399583GS') {
throw new Error('Unexpected Apple signing team');
}
Notarization call from `scripts/notarize.cjs:16-23`:
return await notarize({
tool: 'notarytool',
appBundleId: 'com.agent-teams.app',
appPath: `${appOutDir}/${appName}.app`,
appleApiKey: process.env.APPLE_API_KEY,
appleApiKeyId: process.env.APPLE_API_KEY_ID,
appleApiIssuer: process.env.APPLE_API_ISSUER,
});
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| `Apple notarization API credentials are required` | Missing one of three env vars | Set `APPLE_API_KEY`, `APPLE_API_KEY_ID`, `APPLE_API_ISSUER` |
| `Unexpected Apple signing team` | `APPLE_TEAM_ID` != `86399583GS` | Use the correct team ID |
| `notarytool: Invalid API key` | Wrong .p8 file or key ID | Verify key ID matches .p8 filename |
| Notarization fails with auth error | API key expired or revoked | Create a new key in App Store Connect |
Compatibility Notes
- App Store Connect API keys: Prefer over Apple ID credentials; `notarytool` supports both but API keys are more reliable for CI.
- Key scope: The API key needs `Developer` role or higher for notarization.
- Bundle ID: App uses `com.agent-teams.app` as the bundle identifier.