Skip to content

[#730] App Store와 TestFlight가 공유하는 build_for_store의 버전 조회 실패를 해결한다#732

Merged
opficdev merged 2 commits into
developfrom
fix/#730
Jul 15, 2026
Merged

[#730] App Store와 TestFlight가 공유하는 build_for_store의 버전 조회 실패를 해결한다#732
opficdev merged 2 commits into
developfrom
fix/#730

Conversation

@opficdev

Copy link
Copy Markdown
Owner

🔗 연관된 이슈

🎯 의도

  • #722 반영 뒤 전처리 구문이 포함된 원본 Info.plist를 Fastlane의 get_version_number가 XML로 파싱하면서 발생한 CFFormatError 해소
  • App Store와 TestFlight가 공유하는 build_for_store의 마케팅 버전 조회 기준을 Application/Shared/Version.xcconfig로 통일
  • #722에서 확정한 Crashlytics 활성화, dSYM 생성·업로드, 생성된 IPA 설정 검증 흐름 유지

📝 작업 내용

📌 요약

  • get_version_number를 통한 원본 Info.plist 조회 제거
  • Version.xcconfigMARKETING_VERSION 직접 조회와 형식 검증 추가
  • Fastlane 작업 디렉터리와 무관한 __dir__ 기준 버전 파일 경로 계산 적용

🔍 상세

  • marketing_version_from_xcconfig 추가
    • 버전 파일 누락 오류 제공
    • MARKETING_VERSION 키 누락 오류 제공
    • 빈 값 오류 제공
    • 첫 구성 요소가 양수인 1~3개 정수의 점 구분 형식 검증
    • 오류 원인과 대상 경로를 포함한 Fastlane 오류 제공
  • 조회한 MARKETING_VERSION을 App Store Connect의 최근 빌드 번호 조회에 사용
  • Fastlane 작업 디렉터리에서 fastlane/Application/Shared/Version.xcconfig를 조회하던 경로 오류를 __dir__ 기준 절대 경로로 수정
  • build_appCRASHLYTICS_COLLECTION_ENABLED=1, dSYM 생성 설정, verify_store_info_plist 호출부 유지
  • 검증 결과
    • fastlane/ 작업 디렉터리에서 MARKETING_VERSION=1.4 조회 확인
    • 버전 파일 누락, 키 누락, 빈 값, 형식 오류별 Fastlane 오류 메시지 확인
    • ruby -c fastlane/Fastfile 통과
    • bundle check 통과
    • bundle exec fastlane lanes 통과
    • git diff --check 통과
    • 최종 커밋 0dbc07cf6 기준 TestFlight run 29308325910의 빌드와 dSYM 업로드 성공 및 TestFlight 업로드 생략
    • 최종 커밋 0dbc07cf6 기준 App Store run 29312793662의 빌드, dSYM 업로드, App Store Connect 업로드 성공

📸 영상 / 이미지 (Optional)

  • 없음

@opficdev opficdev self-assigned this Jul 15, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 PR에서는 Fastfile 내에서 Version.xcconfig 파일로부터 MARKETING_VERSION을 직접 읽어와 검증하는 marketing_version_from_xcconfig 메서드를 추가하고 적용하였습니다. 리뷰에서는 정규식 검증 시 0.x.y와 같이 0으로 시작하는 초기 버전을 허용하지 않는 문제를 지적하고, 이를 허용하도록 정규식을 수정할 것을 제안했습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread fastlane/Fastfile
@opficdev
opficdev merged commit 7d9db0c into develop Jul 15, 2026
9 checks passed
@opficdev
opficdev deleted the fix/#730 branch July 15, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App Store와 TestFlight가 공유하는 build_for_store의 버전 조회 실패를 해결한다

1 participant