Skip to content

[#225] 테스트플라이트 자동 배포가 실패하는 현상을 해결한다#237

Merged
opficdev merged 18 commits intodevelopfrom
fix/#225-fastlane
Mar 10, 2026
Merged

[#225] 테스트플라이트 자동 배포가 실패하는 현상을 해결한다#237
opficdev merged 18 commits intodevelopfrom
fix/#225-fastlane

Conversation

@opficdev
Copy link
Owner

image

@opficdev opficdev self-assigned this Mar 10, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 Pull Request는 TestFlight 자동 배포 실패 문제를 해결하기 위해 Fastlane 설정을 개선합니다. 주요 변경 사항은 App Store Connect에서 최신 빌드 번호를 가져와 빌드 번호 충돌을 방지하고, CI 환경에서 코드 서명 문제를 보다 견고하게 처리하며, 빌드 프로세스에 필요한 추가 설정을 도입하는 것입니다. 이를 통해 TestFlight 배포의 안정성과 신뢰성을 향상시키는 것을 목표로 합니다.

Highlights

  • Fastlane 빌드 번호 관리 개선: App Store Connect에서 최신 TestFlight 빌드 번호를 가져와 빌드 번호 충돌을 방지하고, 빌드 번호를 자동으로 1 증가시키는 새로운 비공개 레인 fetch_latest_testflight_build_number를 추가했습니다.
  • Fastlane 환경 변수 설정: FASTLANE_XCODEBUILD_SETTINGS_TIMEOUTFASTLANE_XCODEBUILD_SETTINGS_RETRIES 환경 변수에 대한 기본값을 설정하는 로직을 추가하여 빌드 안정성을 높였습니다.
  • CI 환경 코드 서명 강화: CI 환경에서 development 프로비저닝 프로파일을 매칭하고, update_code_signing_settings 액션을 사용하여 코드 서명 설정을 명시적으로 업데이트하도록 하여 코드 서명 관련 문제를 해결했습니다.
  • 빌드 옵션 추가: build_app 호출에 xcargs: "-skipPackagePluginValidation" 옵션을 추가하여 Xcode 빌드 시 플러그인 유효성 검사를 건너뛰도록 했습니다.
  • Fastlane 레인 이름 변경 및 추가: 기존 beta 레인의 이름을 deploy_testflight로 변경하고, build_for_store 레인만 호출하는 testflight_build_only라는 새로운 레인을 추가했습니다.
  • .gitignore 업데이트: Fastlane 관련 파일인 fastlane/README.md.gitignore에 추가하여 버전 관리에서 제외했습니다.
Changelog
  • .gitignore
    • fastlane/README.md를 무시 목록에 추가했습니다.
  • fastlane/Fastfile
    • XCODE_PROJ, APP_IDENTIFIER, TARGET_NAME 상수를 정의했습니다.
    • fetch_latest_testflight_build_number 비공개 레인을 추가하여 App Store Connect에서 최신 TestFlight 빌드 번호를 가져오도록 했습니다.
    • build_for_store 레인을 업데이트하여 FASTLANE_XCODEBUILD_SETTINGS_TIMEOUTFASTLANE_XCODEBUILD_SETTINGS_RETRIES 환경 변수를 설정하고, 최신 TestFlight 빌드 번호를 기반으로 빌드 번호를 증가시키며, development 프로비저닝 프로파일을 매칭하고, CI 환경에서 코드 서명 설정을 업데이트하도록 했습니다. 또한 build_app 호출에 xcargs: "-skipPackagePluginValidation"을 추가했습니다.
    • 기존 beta 레인의 이름을 deploy_testflight로 변경했습니다.
    • build_for_store 레인을 호출하는 testflight_build_only라는 새로운 레인을 추가했습니다.
Ignored Files
  • Ignored by pattern: .github/workflows/** (3)
    • .github/workflows/build.yml
    • .github/workflows/release.yml
    • .github/workflows/testflight.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@opficdev opficdev merged commit b01b883 into develop Mar 10, 2026
1 check failed
@opficdev opficdev deleted the fix/#225-fastlane branch March 10, 2026 01:43
Copy link
Contributor

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

Choose a reason for hiding this comment

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

Code Review

테스트플라이트 자동 배포 실패 문제를 해결하기 위한 Fastlane 설정 변경 사항을 리뷰했습니다. App Store Connect에서 최신 빌드 번호를 가져와 빌드 번호를 동적으로 설정하는 방식으로 변경하여, 빌드 번호 충돌로 인한 배포 실패를 방지하도록 수정한 점이 좋습니다. 또한, CI 환경에서의 안정성을 높이기 위한 설정들이 추가되었습니다. 전반적으로 좋은 수정이지만, 코드 가독성 및 유지보수성 향상을 위해 Ruby 스타일 가이드에 따라 일부 변수명을 수정하는 것을 제안합니다.

I am having trouble creating individual review comments. Click here to see my feedback.

fastlane/Fastfile (11)

medium

Ruby 스타일 가이드에 따라 지역 변수에는 snake_case를 사용하는 것이 좋습니다. versionNumberversion_number로 변경하고, 이 lane 내에서 사용되는 곳도 함께 수정해주세요.

    version_number = options[:version]

fastlane/Fastfile (54)

medium

Ruby 스타일 가이드에 따라 지역 변수에는 snake_case를 사용하는 것이 좋습니다. versionNumberversion_number로 변경하고, 이 lane 내에서 사용되는 곳도 함께 수정해주세요.

    version_number = get_version_number(

fastlane/Fastfile (59)

medium

Ruby 스타일 가이드에 따라 지역 변수에는 snake_case를 사용하는 것이 좋습니다. latestTestflightBuildNumberlatest_testflight_build_number로 변경하고, 이 lane 내에서 사용되는 곳도 함께 수정해주세요.

    latest_testflight_build_number = fetch_latest_testflight_build_number(

fastlane/Fastfile (83)

medium

Ruby 스타일 가이드에 따라 지역 변수에는 snake_case를 사용하는 것이 좋습니다. provisioningProfileSpecifierprovisioning_profile_specifier로 변경하고, 이 lane 내에서 사용되는 곳도 함께 수정해주세요.

      provisioning_profile_specifier = lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING][APP_IDENTIFIER].to_s

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.

1 participant