From 3990f1b7da88562dc955854ff1e6be9d8ca39502 Mon Sep 17 00:00:00 2001 From: sirily11 <32106111+sirily11@users.noreply.github.com> Date: Fri, 22 May 2026 10:38:42 +0800 Subject: [PATCH] fix: xcode ci build --- .github/workflows/test.yaml | 4 +++- RxCodeMobile/Views/SessionsList.swift | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f294a8a..437c8ad 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -123,10 +123,12 @@ jobs: # CODE_SIGNING_ALLOWED=NO won't link a valid .app. Ad-hoc sign the # device build instead — no certificate or provisioning profile # required, just enough to produce a verifiable bundle. + # Release configuration: DEBUG is undefined here, so this also + # catches code wrongly placed outside an `#if DEBUG` guard. set -o pipefail && xcodebuild \ -project RxCode.xcodeproj \ -scheme RxCodeMobile \ - -configuration Debug \ + -configuration Release \ -destination 'generic/platform=iOS' \ CODE_SIGN_IDENTITY="-" \ CODE_SIGN_STYLE=Manual \ diff --git a/RxCodeMobile/Views/SessionsList.swift b/RxCodeMobile/Views/SessionsList.swift index 15ffe72..76d8f11 100644 --- a/RxCodeMobile/Views/SessionsList.swift +++ b/RxCodeMobile/Views/SessionsList.swift @@ -689,7 +689,6 @@ extension MobileAppState { return state } } -#endif #Preview("Sessions List") { let state = MobileAppState.preview @@ -731,3 +730,4 @@ extension MobileAppState { } .environmentObject(state) } +#endif