From 73f27efadd87cea03d45dae677ac8fccc302f8a1 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Fri, 8 Aug 2025 11:14:41 +0300 Subject: [PATCH] fix(fastlane): testflight --- .gitea/workflows/test-flight-cd.yaml | 22 +++++++++++++++++++++- ios/fastlane/Fastfile | 3 +++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test-flight-cd.yaml b/.gitea/workflows/test-flight-cd.yaml index 0bb7c723..faff6332 100644 --- a/.gitea/workflows/test-flight-cd.yaml +++ b/.gitea/workflows/test-flight-cd.yaml @@ -44,9 +44,20 @@ jobs: - name: Setup API key run: | - echo "${API_APPSTORE_KEY}" | base64 --decode > ios/AuthKey.p8 + echo "API_APPSTORE_KEY length: ${#API_APPSTORE_KEY}" + if [ -z "$API_APPSTORE_KEY" ]; then + echo "ERROR: API_APPSTORE_KEY is empty or not set" + exit 1 + fi + echo "${API_APPSTORE_KEY}" | tr -d '\n' | base64 --decode > ios/AuthKey.p8 chmod 600 ios/AuthKey.p8 ls -la ios/AuthKey.p8 + echo "File size: $(wc -c < ios/AuthKey.p8) bytes" + echo "First few characters of decoded file:" + head -c 50 ios/AuthKey.p8 | xxd + echo "Current directory: $(pwd)" + echo "Contents of ios directory:" + ls -la ios/ env: API_APPSTORE_KEY: ${{ vars.API_APPSTORE_KEY }} @@ -57,6 +68,15 @@ jobs: flutter pub upgrade flutter pub run build_runner build --delete-conflicting-outputs cd ios + echo "Current directory after cd ios: $(pwd)" + echo "Contents of current directory:" + ls -la + echo "Checking if AuthKey.p8 exists:" + if [ -f "AuthKey.p8" ]; then + echo "AuthKey.p8 exists, size: $(wc -c < AuthKey.p8) bytes" + else + echo "AuthKey.p8 does not exist" + fi pod update fastlane beta env: diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index a43260fe..6ecef599 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -18,9 +18,12 @@ default_platform(:ios) platform :ios do desc "Push a new beta build to TestFlight" lane :beta do + UI.message "Current working directory: #{Dir.pwd}" UI.message "Checking API key file..." + UI.message "Files in current directory: #{Dir.entries('.').join(', ')}" if File.exist?("./AuthKey.p8") UI.message "API key file exists" + UI.message "File size: #{File.size('./AuthKey.p8')} bytes" else UI.user_error!("API key file not found at ./AuthKey.p8") end