From d47ac4afac8d2e5d0654eb8cb3672d6c7b222609 Mon Sep 17 00:00:00 2001 From: KangKang <165460077+kanghun1121@users.noreply.github.com> Date: Sun, 29 Mar 2026 00:12:53 +0900 Subject: [PATCH 1/4] =?UTF-8?q?TestFlight=20CI=20=EC=97=90=EB=9F=AC=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated code signing identity from 'iPhone Distribution' to 'APPLE Distribution'. --- .github/workflows/deploy-testflight.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy-testflight.yml b/.github/workflows/deploy-testflight.yml index e09687ef..21fa10b3 100644 --- a/.github/workflows/deploy-testflight.yml +++ b/.github/workflows/deploy-testflight.yml @@ -165,8 +165,7 @@ jobs: CURRENT_PROJECT_VERSION="$BUILD_NUMBER" \ CODE_SIGN_STYLE=Manual \ DEVELOPMENT_TEAM=W35T2QAC67 \ - CODE_SIGN_IDENTITY="iPhone Distribution" \ - OTHER_CODE_SIGN_FLAGS="--keychain ${{ env.KEYCHAIN_PATH }}" \ + CODE_SIGN_IDENTITY="APPLE Distribution" \ 2>&1 | tee "$RUNNER_TEMP/archive.log" | xcpretty --color # 아카이브에서 버전 추출 From a09b2102dba79a06d11608898f915e57a0a2da69 Mon Sep 17 00:00:00 2001 From: KangKang <165460077+kanghun1121@users.noreply.github.com> Date: Sun, 29 Mar 2026 00:25:24 +0900 Subject: [PATCH 2/4] =?UTF-8?q?chore:=20archive=20=EB=B6=80=EB=B6=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-testflight.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-testflight.yml b/.github/workflows/deploy-testflight.yml index 21fa10b3..a2ada123 100644 --- a/.github/workflows/deploy-testflight.yml +++ b/.github/workflows/deploy-testflight.yml @@ -151,10 +151,17 @@ jobs: - name: Archive run: | set -o pipefail + BUILD_NUMBER=$(date -u +'%y%m%d')${{ github.run_number }} + MARKETING_VERSION=$(grep 'MARKETING_VERSION' FoodDiary/App/Project.swift | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') + if [ -z "$MARKETING_VERSION" ]; then + echo "::error::MARKETING_VERSION 추출 실패" + exit 1 + fi + ARCHIVE_PATH=$RUNNER_TEMP/App.xcarchive - + xcodebuild archive \ -workspace Workspace.xcworkspace \ -scheme release \ @@ -165,12 +172,17 @@ jobs: CURRENT_PROJECT_VERSION="$BUILD_NUMBER" \ CODE_SIGN_STYLE=Manual \ DEVELOPMENT_TEAM=W35T2QAC67 \ - CODE_SIGN_IDENTITY="APPLE Distribution" \ + CODE_SIGN_IDENTITY="Apple Distribution" \ + PROVISIONING_PROFILE_SPECIFIER="FoodDiary-Distribution" \ 2>&1 | tee "$RUNNER_TEMP/archive.log" | xcpretty --color - - # 아카이브에서 버전 추출 + exit ${PIPESTATUS[0]} + VERSION=$(/usr/libexec/PlistBuddy -c "Print :ApplicationProperties:CFBundleShortVersionString" "$ARCHIVE_PATH/Info.plist") - + if [ -z "$VERSION" ]; then + echo "::error::VERSION 추출 실패" + exit 1 + fi + echo "ARCHIVE_PATH=$ARCHIVE_PATH" >> $GITHUB_ENV echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV echo "VERSION=$VERSION" >> $GITHUB_ENV From 1be35de9aca29ae512b5bdac2acec51430baf5a4 Mon Sep 17 00:00:00 2001 From: enebin Date: Wed, 1 Apr 2026 22:55:53 +0900 Subject: [PATCH 3/4] =?UTF-8?q?fix:=20PROVISIONING=5FPROFILE=5FSPECIFIER?= =?UTF-8?q?=20=EC=A0=84=EC=97=AD=20=EC=A0=81=EC=9A=A9=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B8=ED=95=9C=20Archive=20=EC=8B=A4=ED=8C=A8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-testflight.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy-testflight.yml b/.github/workflows/deploy-testflight.yml index a2ada123..a953ef11 100644 --- a/.github/workflows/deploy-testflight.yml +++ b/.github/workflows/deploy-testflight.yml @@ -172,17 +172,16 @@ jobs: CURRENT_PROJECT_VERSION="$BUILD_NUMBER" \ CODE_SIGN_STYLE=Manual \ DEVELOPMENT_TEAM=W35T2QAC67 \ - CODE_SIGN_IDENTITY="Apple Distribution" \ - PROVISIONING_PROFILE_SPECIFIER="FoodDiary-Distribution" \ + CODE_SIGN_IDENTITY="iPhone Distribution" \ + OTHER_CODE_SIGN_FLAGS="--keychain ${{ env.KEYCHAIN_PATH }}" \ 2>&1 | tee "$RUNNER_TEMP/archive.log" | xcpretty --color - exit ${PIPESTATUS[0]} - + VERSION=$(/usr/libexec/PlistBuddy -c "Print :ApplicationProperties:CFBundleShortVersionString" "$ARCHIVE_PATH/Info.plist") if [ -z "$VERSION" ]; then echo "::error::VERSION 추출 실패" exit 1 fi - + echo "ARCHIVE_PATH=$ARCHIVE_PATH" >> $GITHUB_ENV echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV echo "VERSION=$VERSION" >> $GITHUB_ENV From b919d9a6ba2a5f9d31a572287763258801380c42 Mon Sep 17 00:00:00 2001 From: enebin Date: Wed, 1 Apr 2026 23:02:42 +0900 Subject: [PATCH 4/4] =?UTF-8?q?fix:=20App=20=ED=83=80=EA=B2=9F=20provision?= =?UTF-8?q?ing=20profile=EC=9D=84=20xcconfig=EC=97=90=EC=84=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=ED=95=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-testflight.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-testflight.yml b/.github/workflows/deploy-testflight.yml index a953ef11..3661cb46 100644 --- a/.github/workflows/deploy-testflight.yml +++ b/.github/workflows/deploy-testflight.yml @@ -113,7 +113,9 @@ jobs: RELEASE_XCCONFIG: ${{ secrets.RELEASE_XCCONFIG }} run: | mkdir -p Configs - echo "$RELEASE_XCCONFIG" | grep -v -E 'CURRENT_PROJECT_VERSION|MARKETING_VERSION' > Configs/release.xcconfig + echo "$RELEASE_XCCONFIG" | grep -v -E 'CURRENT_PROJECT_VERSION|MARKETING_VERSION|PROVISIONING_PROFILE_SPECIFIER|CODE_SIGN_IDENTITY' > Configs/release.xcconfig + echo "PROVISIONING_PROFILE_SPECIFIER = FoodDiary-Distribution" >> Configs/release.xcconfig + echo "CODE_SIGN_IDENTITY = iPhone Distribution" >> Configs/release.xcconfig echo "// Debug Configuration (CI)" > Configs/debug.xcconfig - name: Create GoogleService-Info.plist