From eef03926ee6432ece8ad7de2c6ff1c2ec21fd31e Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Fri, 20 Nov 2026 16:33:46 +0900 Subject: [PATCH 1/8] test: verify iOS dining meal changes in simulator CI --- .github/workflows/dining-ui.yml | 76 +++++++++++++++++++ .maestro/dining.yaml | 30 ++++++++ .../Dining/Subviews/DiningMenuListView.swift | 1 + README.md | 6 ++ 4 files changed, 113 insertions(+) create mode 100644 .github/workflows/dining-ui.yml create mode 100644 .maestro/dining.yaml diff --git a/.github/workflows/dining-ui.yml b/.github/workflows/dining-ui.yml new file mode 100644 index 000000000..710fa0ee6 --- /dev/null +++ b/.github/workflows/dining-ui.yml @@ -0,0 +1,76 @@ +name: iOS Dining UI + +on: + pull_request: + branches: [develop] + paths: + - '.github/workflows/dining-ui.yml' + - '.maestro/dining.yaml' + - 'Koin/Presentation/Dining/**' + - 'Koin/Presentation/Home/SubViews/DiningView/**' + +permissions: + contents: read + +concurrency: + group: dining-ui-${{ github.event.pull_request.number }} + cancel-in-progress: true + +jobs: + dining: + if: github.event.pull_request.head.repo.full_name == github.repository + runs-on: macos-26 + timeout-minutes: 45 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Prepare Stage configuration + env: + DEBUG_XCCONFIG: ${{ secrets.DEBUG_XCCONFIG }} + GOOGLE_SERVICE_STAGE_PLIST: ${{ secrets.GOOGLE_SERVICE_STAGE_PLIST }} + run: | + test -n "$DEBUG_XCCONFIG" + test -n "$GOOGLE_SERVICE_STAGE_PLIST" + mkdir -p Koin/Core/Configuration + printf '%s' "$DEBUG_XCCONFIG" | base64 --decode > Koin/Core/Configuration/Debug.xcconfig + printf '%s' "$GOOGLE_SERVICE_STAGE_PLIST" | base64 --decode > GoogleService-Info-Stage.plist + + - name: Build and install Stage on iPhone Simulator + run: | + sudo xcode-select -s /Applications/Xcode_26.4.1.app + device=$(xcrun simctl list devices available -j | jq -er '[.devices | to_entries | sort_by(.key) | reverse | .[].value[] | select(.name == "iPhone 17 Pro") | .udid][0]') + xcrun simctl bootstatus "$device" -b + xcodebuild build -project koin.xcodeproj -scheme koin-stage \ + -configuration Debug -destination "platform=iOS Simulator,id=$device" \ + -derivedDataPath build/dining-ui CODE_SIGNING_ALLOWED=NO + for app in build/dining-ui/Build/Products/Debug-iphonesimulator/*.app; do + bundle=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' "$app/Info.plist") + if [[ "$bundle" == com.bcsdlab.koin.stage ]]; then + xcrun simctl install "$device" "$app" + printf 'DINING_DEVICE=%s\n' "$device" >> "$GITHUB_ENV" + exit 0 + fi + done + echo 'Stage simulator app not found' >&2 + exit 1 + + - name: Verify guest dining entry and meal change + env: + MAESTRO_VERSION: '2.2.0' + run: | + export JAVA_HOME=$(/usr/libexec/java_home -v 17) + curl -fsSL https://get.maestro.mobile.dev | bash + mkdir -p build/dining-ui/evidence + cd build/dining-ui/evidence + "$HOME/.maestro/bin/maestro" --device "$DINING_DEVICE" test ../../../.maestro/dining.yaml \ + --format junit --output junit.xml --test-output-dir . + + - name: Upload dining UI evidence + if: always() + uses: actions/upload-artifact@v4 + with: + name: ios-dining-ui + path: build/dining-ui/evidence/ + retention-days: 7 diff --git a/.maestro/dining.yaml b/.maestro/dining.yaml new file mode 100644 index 000000000..0a439ff39 --- /dev/null +++ b/.maestro/dining.yaml @@ -0,0 +1,30 @@ +appId: com.bcsdlab.koin.stage +name: Guest dining entry and meal content change +--- +- launchApp: + clearState: true + permissions: + all: allow +- extendedWaitUntil: + visible: '오늘의 식단' + timeout: 60000 +- tapOn: + text: '전체보기' + rightOf: '오늘의 식단' +- extendedWaitUntil: + visible: '아침' + timeout: 30000 +- tapOn: '아침' +- extendedWaitUntil: + visible: + id: dining-menu-0 + timeout: 30000 +- takeScreenshot: dining-breakfast +- tapOn: '저녁' +- extendedWaitUntil: + visible: + id: dining-menu-2 + timeout: 30000 +- assertNotVisible: + id: dining-menu-0 +- takeScreenshot: dining-dinner diff --git a/Koin/Presentation/Dining/Dining/Subviews/DiningMenuListView.swift b/Koin/Presentation/Dining/Dining/Subviews/DiningMenuListView.swift index b62828c64..836206191 100644 --- a/Koin/Presentation/Dining/Dining/Subviews/DiningMenuListView.swift +++ b/Koin/Presentation/Dining/Dining/Subviews/DiningMenuListView.swift @@ -80,6 +80,7 @@ struct DiningMenuListView: View { .padding(.vertical, 20) } .scrollIndicators(.hidden) + .accessibilityIdentifier("dining-menu-\(list.diningType.index)") .background{ if list.items.isEmpty { DiningEmptyView() diff --git a/README.md b/README.md index 9b7cef4b3..92b7b8949 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,12 @@ Koin └── Frameworks # 외부 프레임워크 ``` +### 식단 UI 검증 + +같은 저장소의 식단 관련 PR에서는 `iOS Dining UI`가 iPhone 17 Pro 시뮬레이터에서 Stage 앱을 검증합니다. +비로그인 상태로 식단에 진입해 아침에서 저녁으로 전환한 뒤, 저녁 목록이 나타나고 이전 목록이 사라지는지 확인합니다. +스크린샷과 JUnit 결과는 Actions의 `ios-dining-ui` 산출물에서 확인할 수 있습니다. + --- ### 🧑‍🧑‍🧒‍🧒 Team Members From 77bfb67b62faad78d3af94a36caa30d853f055af Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Fri, 20 Nov 2026 17:03:26 +0900 Subject: [PATCH 2/8] =?UTF-8?q?test:=20=EC=88=98=EC=A7=91=ED=95=9C=20iOS?= =?UTF-8?q?=20=EC=8B=9C=EB=AE=AC=EB=A0=88=EC=9D=B4=ED=84=B0=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EC=98=A4=EB=A5=98=EB=A5=BC=20=EA=B8=B0=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dining-ui.yml | 39 ++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dining-ui.yml b/.github/workflows/dining-ui.yml index 710fa0ee6..e8cf00578 100644 --- a/.github/workflows/dining-ui.yml +++ b/.github/workflows/dining-ui.yml @@ -37,6 +37,11 @@ jobs: printf '%s' "$DEBUG_XCCONFIG" | base64 --decode > Koin/Core/Configuration/Debug.xcconfig printf '%s' "$GOOGLE_SERVICE_STAGE_PLIST" | base64 --decode > GoogleService-Info-Stage.plist + - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: SourcePackages + key: spm-${{ hashFiles('koin.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} + - name: Build and install Stage on iPhone Simulator run: | sudo xcode-select -s /Applications/Xcode_26.4.1.app @@ -44,12 +49,16 @@ jobs: xcrun simctl bootstatus "$device" -b xcodebuild build -project koin.xcodeproj -scheme koin-stage \ -configuration Debug -destination "platform=iOS Simulator,id=$device" \ - -derivedDataPath build/dining-ui CODE_SIGNING_ALLOWED=NO + -derivedDataPath build/dining-ui -clonedSourcePackagesDirPath SourcePackages \ + CODE_SIGNING_ALLOWED=NO for app in build/dining-ui/Build/Products/Debug-iphonesimulator/*.app; do bundle=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' "$app/Info.plist") if [[ "$bundle" == com.bcsdlab.koin.stage ]]; then + plutil -lint "$app/GoogleService-Info.plist" + executable=$(/usr/libexec/PlistBuddy -c 'Print CFBundleExecutable' "$app/Info.plist") xcrun simctl install "$device" "$app" printf 'DINING_DEVICE=%s\n' "$device" >> "$GITHUB_ENV" + printf 'DINING_EXECUTABLE=%s\n' "$executable" >> "$GITHUB_ENV" exit 0 fi done @@ -67,6 +76,34 @@ jobs: "$HOME/.maestro/bin/maestro" --device "$DINING_DEVICE" test ../../../.maestro/dining.yaml \ --format junit --output junit.xml --test-output-dir . + - name: Diagnose Stage launch after a UI failure + if: ${{ failure() && env.DINING_DEVICE != '' }} + run: | + mkdir -p build/dining-ui/evidence + out=build/dining-ui/evidence + xcrun simctl terminate "$DINING_DEVICE" com.bcsdlab.koin.stage || true + xcrun simctl launch "$DINING_DEVICE" com.bcsdlab.koin.stage > "$out/launch.txt" 2>&1 || true + sleep 8 + xcrun simctl io "$DINING_DEVICE" screenshot "$out/standalone-launch.png" || true + python3 - <<'PY' | tee "$out/crash-summary.txt" + import json + import os + from pathlib import Path + + executable = os.environ["DINING_EXECUTABLE"] + report_dir = Path.home() / "Library/Logs/DiagnosticReports" + for report in sorted(report_dir.glob(f"{executable}-*.ips")): + try: + _, body = report.read_text().split("\n", 1) + data = json.loads(body) + except (OSError, ValueError): + continue + exception = data.get("exception", {}) + termination = data.get("termination", {}) + print(report.name, exception.get("type"), exception.get("signal"), + termination.get("namespace"), termination.get("code")) + PY + - name: Upload dining UI evidence if: always() uses: actions/upload-artifact@v4 From 842f904065a77d1adcdf5d7a2fdd869b4aad367a Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Fri, 20 Nov 2026 18:04:42 +0900 Subject: [PATCH 3/8] =?UTF-8?q?test:=20iOS=20=EC=8B=9C=EC=9E=91=20?= =?UTF-8?q?=ED=81=AC=EB=9E=98=EC=8B=9C=EC=9D=98=20=ED=98=B8=EC=B6=9C=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EA=B8=B0=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dining-ui.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/dining-ui.yml b/.github/workflows/dining-ui.yml index e8cf00578..d595b05e3 100644 --- a/.github/workflows/dining-ui.yml +++ b/.github/workflows/dining-ui.yml @@ -102,6 +102,16 @@ jobs: termination = data.get("termination", {}) print(report.name, exception.get("type"), exception.get("signal"), termination.get("namespace"), termination.get("code")) + threads = data.get("threads", []) + thread = next((t for t in threads if t.get("triggered")), None) + index = data.get("faultingThread") + if thread is None and isinstance(index, int) and 0 <= index < len(threads): + thread = threads[index] + images = data.get("usedImages", []) + for frame in (thread or {}).get("frames", [])[:20]: + index = frame.get("imageIndex") + image = images[index] if isinstance(index, int) and 0 <= index < len(images) else {} + print(image.get("name"), frame.get("symbol"), frame.get("imageOffset")) PY - name: Upload dining UI evidence From 950d424afad1ae18e0b79bba600c6a037c1674f4 Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Fri, 20 Nov 2026 18:23:51 +0900 Subject: [PATCH 4/8] =?UTF-8?q?test:=20iOS=20=EC=8B=9C=EB=AE=AC=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20=ED=81=AC=EB=9E=98=EC=8B=9C=20=EB=A6=AC?= =?UTF-8?q?=ED=8F=AC=ED=8A=B8=20=EC=83=9D=EC=84=B1=20=EB=8C=80=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dining-ui.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dining-ui.yml b/.github/workflows/dining-ui.yml index d595b05e3..908af310b 100644 --- a/.github/workflows/dining-ui.yml +++ b/.github/workflows/dining-ui.yml @@ -83,7 +83,12 @@ jobs: out=build/dining-ui/evidence xcrun simctl terminate "$DINING_DEVICE" com.bcsdlab.koin.stage || true xcrun simctl launch "$DINING_DEVICE" com.bcsdlab.koin.stage > "$out/launch.txt" 2>&1 || true - sleep 8 + for attempt in {1..12}; do + if find "$HOME/Library/Logs/DiagnosticReports" -maxdepth 1 -name "$DINING_EXECUTABLE-*.ips" -print -quit | grep -q .; then + break + fi + sleep 5 + done xcrun simctl io "$DINING_DEVICE" screenshot "$out/standalone-launch.png" || true python3 - <<'PY' | tee "$out/crash-summary.txt" import json @@ -103,6 +108,8 @@ jobs: print(report.name, exception.get("type"), exception.get("signal"), termination.get("namespace"), termination.get("code")) threads = data.get("threads", []) + if not threads: + print("No threads recorded in report") thread = next((t for t in threads if t.get("triggered")), None) index = data.get("faultingThread") if thread is None and isinstance(index, int) and 0 <= index < len(threads): From b3ace136c1467315452bc783767f4d54cab44fd8 Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Fri, 20 Nov 2026 18:43:58 +0900 Subject: [PATCH 5/8] =?UTF-8?q?fix:=20iOS=20=EC=8B=9D=EB=8B=A8=20=EC=8B=9C?= =?UTF-8?q?=EB=AE=AC=EB=A0=88=EC=9D=B4=ED=84=B0=20=EB=B9=8C=EB=93=9C?= =?UTF-8?q?=EC=97=90=20App=20Group=20=EA=B6=8C=ED=95=9C=20=EC=9C=A0?= =?UTF-8?q?=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dining-ui.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dining-ui.yml b/.github/workflows/dining-ui.yml index 908af310b..9ac6bac0f 100644 --- a/.github/workflows/dining-ui.yml +++ b/.github/workflows/dining-ui.yml @@ -50,11 +50,14 @@ jobs: xcodebuild build -project koin.xcodeproj -scheme koin-stage \ -configuration Debug -destination "platform=iOS Simulator,id=$device" \ -derivedDataPath build/dining-ui -clonedSourcePackagesDirPath SourcePackages \ - CODE_SIGNING_ALLOWED=NO + CODE_SIGN_IDENTITY=- CODE_SIGNING_REQUIRED=YES for app in build/dining-ui/Build/Products/Debug-iphonesimulator/*.app; do bundle=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' "$app/Info.plist") if [[ "$bundle" == com.bcsdlab.koin.stage ]]; then plutil -lint "$app/GoogleService-Info.plist" + codesign -d --entitlements :- "$app" > "$RUNNER_TEMP/dining-entitlements.plist" + /usr/libexec/PlistBuddy -c 'Print :com.apple.security.application-groups' \ + "$RUNNER_TEMP/dining-entitlements.plist" | grep -Fq 'group.com.bcsdlab.koin' executable=$(/usr/libexec/PlistBuddy -c 'Print CFBundleExecutable' "$app/Info.plist") xcrun simctl install "$device" "$app" printf 'DINING_DEVICE=%s\n' "$device" >> "$GITHUB_ENV" From 626010531816e72cf0e3792e8c37bb53aff98aa2 Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Fri, 20 Nov 2026 18:59:25 +0900 Subject: [PATCH 6/8] =?UTF-8?q?fix:=20Xcode=20=EC=8B=9C=EB=AE=AC=EB=A0=88?= =?UTF-8?q?=EC=9D=B4=ED=84=B0=20App=20Group=20=ED=8E=98=EC=9D=B4=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20=EA=B2=80=EC=82=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dining-ui.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dining-ui.yml b/.github/workflows/dining-ui.yml index 9ac6bac0f..f6fd66779 100644 --- a/.github/workflows/dining-ui.yml +++ b/.github/workflows/dining-ui.yml @@ -55,9 +55,11 @@ jobs: bundle=$(/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' "$app/Info.plist") if [[ "$bundle" == com.bcsdlab.koin.stage ]]; then plutil -lint "$app/GoogleService-Info.plist" - codesign -d --entitlements :- "$app" > "$RUNNER_TEMP/dining-entitlements.plist" - /usr/libexec/PlistBuddy -c 'Print :com.apple.security.application-groups' \ - "$RUNNER_TEMP/dining-entitlements.plist" | grep -Fq 'group.com.bcsdlab.koin' + # Xcode embeds simulator App Groups from the simulated entitlement payload, + # not the host-side ad hoc signature inspected by codesign -d. + simulated=build/dining-ui/Build/Intermediates.noindex/koin.build/Debug-iphonesimulator/koin.build/koin.app-Simulated.xcent + /usr/libexec/PlistBuddy -c 'Print :com.apple.security.application-groups:0' \ + "$simulated" | grep -Fxq 'group.com.bcsdlab.koin' executable=$(/usr/libexec/PlistBuddy -c 'Print CFBundleExecutable' "$app/Info.plist") xcrun simctl install "$device" "$app" printf 'DINING_DEVICE=%s\n' "$device" >> "$GITHUB_ENV" From 760e6ccf2e165918ed93b67e5424b0976fa665f8 Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Sat, 21 Nov 2026 08:24:13 +0900 Subject: [PATCH 7/8] =?UTF-8?q?fix:=20iOS=20=EC=8B=9D=EB=8B=A8=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=EB=B3=B4=EA=B8=B0=20=EB=B2=84=ED=8A=BC=EC=9D=84=20?= =?UTF-8?q?=EC=A7=81=EC=A0=91=20=EC=84=A0=ED=83=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dining-ui.yml | 2 +- .maestro/dining.yaml | 3 +-- .../Home/SubViews/DiningView/Subviews/DiningHeaderButton.swift | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dining-ui.yml b/.github/workflows/dining-ui.yml index f6fd66779..99a16ab45 100644 --- a/.github/workflows/dining-ui.yml +++ b/.github/workflows/dining-ui.yml @@ -7,7 +7,7 @@ on: - '.github/workflows/dining-ui.yml' - '.maestro/dining.yaml' - 'Koin/Presentation/Dining/**' - - 'Koin/Presentation/Home/SubViews/DiningView/**' + - 'Koin/Presentation/Home/Home/SubViews/DiningView/**' permissions: contents: read diff --git a/.maestro/dining.yaml b/.maestro/dining.yaml index 0a439ff39..5b30e763a 100644 --- a/.maestro/dining.yaml +++ b/.maestro/dining.yaml @@ -9,8 +9,7 @@ name: Guest dining entry and meal content change visible: '오늘의 식단' timeout: 60000 - tapOn: - text: '전체보기' - rightOf: '오늘의 식단' + id: home-dining-view-all - extendedWaitUntil: visible: '아침' timeout: 30000 diff --git a/Koin/Presentation/Home/Home/SubViews/DiningView/Subviews/DiningHeaderButton.swift b/Koin/Presentation/Home/Home/SubViews/DiningView/Subviews/DiningHeaderButton.swift index 5c44b9410..d01a1a6e6 100644 --- a/Koin/Presentation/Home/Home/SubViews/DiningView/Subviews/DiningHeaderButton.swift +++ b/Koin/Presentation/Home/Home/SubViews/DiningView/Subviews/DiningHeaderButton.swift @@ -30,6 +30,7 @@ struct DiningHeaderButton: View { .foregroundStyle(Color.ColorSystem.Neutral.gray600) } .buttonStyle(.plain) + .accessibilityIdentifier("home-dining-view-all") } .padding(.horizontal, 24) .frame(maxWidth: .infinity) From e9a0444073a9799ab279e8ea887a2c38c6849a7e Mon Sep 17 00:00:00 2001 From: Yunsup Sim Date: Sat, 21 Nov 2026 16:05:55 +0900 Subject: [PATCH 8/8] =?UTF-8?q?test:=20=EC=8B=9D=EB=8B=A8=20=EC=A7=84?= =?UTF-8?q?=EC=9E=85=20=EC=A0=84=20=ED=99=88=20=EB=B0=B0=EB=84=88=20?= =?UTF-8?q?=EB=8B=AB=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .maestro/dining.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.maestro/dining.yaml b/.maestro/dining.yaml index 5b30e763a..5316d55f8 100644 --- a/.maestro/dining.yaml +++ b/.maestro/dining.yaml @@ -6,8 +6,11 @@ name: Guest dining entry and meal content change permissions: all: allow - extendedWaitUntil: - visible: '오늘의 식단' + visible: '닫기|오늘의 식단' timeout: 60000 +- tapOn: + text: '닫기' + optional: true - tapOn: id: home-dining-view-all - extendedWaitUntil: