Skip to content

Commit b9d80aa

Browse files
committed
chore(ios): add team id helper
1 parent 2f8213c commit b9d80aa

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

apps/ios/fastlane/SETUP.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ ASC_KEY_PATH=/absolute/path/to/AuthKey_XXXXXXXXXX.p8
2222
IOS_DEVELOPMENT_TEAM=YOUR_TEAM_ID
2323
```
2424

25+
Tip: run `scripts/ios-team-id.sh` from the repo root to print a Team ID to paste into `.env`.
26+
2527
Run:
2628

2729
```bash
2830
cd apps/ios
2931
fastlane beta
3032
```
31-

scripts/ios-team-id.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
team_id="$(defaults read com.apple.dt.Xcode IDEProvisioningTeamIdentifiers 2>/dev/null | grep -Eo '[A-Z0-9]{10}' | head -n1 || true)"
5+
6+
if [[ -z "$team_id" ]]; then
7+
team_id="$(security find-identity -p codesigning -v 2>/dev/null | grep -Eo '\\([A-Z0-9]{10}\\)' | head -n1 | tr -d '()' || true)"
8+
fi
9+
10+
if [[ -z "$team_id" ]]; then
11+
echo "No Apple Team ID found. Open Xcode or install signing certificates first." >&2
12+
exit 1
13+
fi
14+
15+
echo "$team_id"

0 commit comments

Comments
 (0)