From e21430e1d6c6685969d1f7fa600933dfedc567d0 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Tue, 19 May 2026 08:20:17 -0400 Subject: [PATCH] CI: force LANG/LC_ALL to UTF-8 in iOS workflows (CocoaPods needs it) pod install fails with Encoding::CompatibilityError 'Unicode Normalization not appropriate for ASCII-8BIT' when the shell locale isn't UTF-8. CocoaPods' own warning tells you: 'CocoaPods requires your terminal to be using UTF-8 encoding'. Gitea Actions runner on macOS launches subprocesses with LANG unset, which Ruby treats as ASCII-8BIT. Setting env-level LANG=en_US.UTF-8 and LC_ALL=en_US.UTF-8 fixes it for all steps in the job. --- .github/workflows/build-ios-sim.yml | 4 ++++ .github/workflows/build-ios-testflight.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build-ios-sim.yml b/.github/workflows/build-ios-sim.yml index 6bd3718b..01c90f64 100644 --- a/.github/workflows/build-ios-sim.yml +++ b/.github/workflows/build-ios-sim.yml @@ -28,6 +28,10 @@ jobs: env: APP_IOS_TYPE: cakewallet BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + # CocoaPods refuses to operate when LANG is ASCII-8BIT (default for the + # Gitea runner shell). Force UTF-8 globally so `pod install` succeeds. + LANG: en_US.UTF-8 + LC_ALL: en_US.UTF-8 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/build-ios-testflight.yml b/.github/workflows/build-ios-testflight.yml index f2492653..b83cc90b 100644 --- a/.github/workflows/build-ios-testflight.yml +++ b/.github/workflows/build-ios-testflight.yml @@ -35,6 +35,9 @@ jobs: env: APP_IOS_TYPE: cakewallet BRANCH_NAME: ${{ github.head_ref || github.ref_name }} + # CocoaPods needs UTF-8; Gitea runner shell defaults to ASCII-8BIT. + LANG: en_US.UTF-8 + LC_ALL: en_US.UTF-8 steps: - uses: actions/checkout@v4 -- 2.50.1 (Apple Git-155)