Skip to content

Commit 316d88e

Browse files
committed
chore: fastlane API Key 경로를 thingineeer-env 직접 참조
- Desktop 평탄 경로 대신 thingineeer-env/Runnect-env/AuthKey_*.p8 를 직접 참조 - RUNNECT_ENV_DIR 환경변수로 클론 위치 커스터마이징 가능 - p8 누락 시 친절한 에러 메시지 (gh repo clone 안내) - bin/setup 헤더에 p8 별도 관리 정책 명시
1 parent d51cf20 commit 316d88e

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

Runnect-iOS/fastlane/Fastfile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,26 @@ platform :ios do
66

77
desc "App Store Connect API Key 인증"
88
private_lane :api_key do
9+
# p8 위치: RUNNECT_ENV_DIR 환경변수 우선, 없으면 ~/Desktop/thingineeer-env/Runnect-env 기본
10+
runnect_env = ENV["RUNNECT_ENV_DIR"] || File.expand_path("~/Desktop/thingineeer-env/Runnect-env")
11+
p8_path = File.join(runnect_env, "AuthKey_F4W6K82T56.p8")
12+
unless File.exist?(p8_path)
13+
UI.user_error!(<<~MSG)
14+
App Store Connect API Key 파일을 찾을 수 없음: #{p8_path}
15+
16+
해결:
17+
1) thingineeer/thingineeer-env (private) 레포를 클론:
18+
gh repo clone thingineeer/thingineeer-env ~/Desktop/thingineeer-env
19+
2) Runnect-env/AuthKey_F4W6K82T56.p8 가 위 경로에 있는지 확인
20+
3) 다른 위치에 클론한 경우 환경변수로 알림:
21+
export RUNNECT_ENV_DIR="$HOME/path/to/thingineeer-env/Runnect-env"
22+
MSG
23+
end
24+
925
app_store_connect_api_key(
1026
key_id: "F4W6K82T56",
1127
issuer_id: "e5ea7eb2-038f-46e0-91c7-719bb0c07b2e",
12-
key_filepath: File.expand_path("~/Desktop/AuthKey_F4W6K82T56.p8")
28+
key_filepath: p8_path
1329
)
1430
end
1531

bin/setup

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
# 비밀 파일들은 private 레포 `thingineeer/thingineeer-env` 의 `Runnect-env/` 에 보관됨.
99
# 본 스크립트는 `gh` CLI 인증을 사용하므로 해당 private 레포 접근 권한이 있는 계정만 동작.
1010
#
11+
# 참고: fastlane 용 App Store Connect API Key (.p8) 는 본 스크립트가 배치하지 않는다.
12+
# fastlane 실행 시 ~/Desktop/thingineeer-env/Runnect-env/AuthKey_*.p8 (또는 RUNNECT_ENV_DIR 환경변수) 를
13+
# Fastfile 이 직접 참조하므로, thingineeer-env 레포를 별도 클론해 두기만 하면 된다.
14+
#
1115
# Usage: ./bin/setup
1216
#
1317

0 commit comments

Comments
 (0)