File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,10 +22,11 @@ ASC_KEY_PATH=/absolute/path/to/AuthKey_XXXXXXXXXX.p8
2222IOS_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+
2527Run:
2628
2729``` bash
2830cd apps/ios
2931fastlane beta
3032```
31-
Original file line number Diff line number Diff line change 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 "
You can’t perform that action at this time.
0 commit comments