From 8b997b908612e4395b0227bc8891527023690459 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Tue, 19 May 2026 18:54:42 -0400 Subject: [PATCH] Fix NODE_BINARY for Xcode build phases in CI Write .xcode.env.local with explicit node path so the "Bundle React Native code and images" build phase can find node. Xcode build phases don't inherit the GitHub Actions PATH. Also disable xcbeautify for this run to see raw xcodebuild output for debugging. --- mobile/fastlane/Fastfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mobile/fastlane/Fastfile b/mobile/fastlane/Fastfile index 07a0c1e..85b3227 100644 --- a/mobile/fastlane/Fastfile +++ b/mobile/fastlane/Fastfile @@ -116,14 +116,10 @@ platform :ios do match( type: "appstore", readonly: true, - verbose: true, keychain_name: "fastlane_tmp_keychain", keychain_password: "" ) - sh("security find-identity -v -p codesigning || true") - sh("security find-identity -v -p codesigning #{File.expand_path("~/Library/Keychains/fastlane_tmp_keychain-db")} || true") - update_code_signing_settings( use_automatic_signing: false, team_id: "9KAQYC653W", @@ -132,6 +128,10 @@ platform :ios do path: "ios/ProposalSystem.xcodeproj" ) + node_path = sh("which node").strip + File.write("ios/.xcode.env.local", "export NODE_BINARY=#{node_path}\n") + UI.message("NODE_BINARY set to #{node_path}") + increment_build_number( build_number: ENV["GITHUB_RUN_NUMBER"], xcodeproj: "ios/ProposalSystem.xcodeproj" @@ -144,7 +144,8 @@ platform :ios do export_method: "app-store", export_team_id: "9KAQYC653W", output_directory: "build", - output_name: "ProposalSystem.ipa" + output_name: "ProposalSystem.ipa", + xcodebuild_formatter: "" ) upload_to_testflight(skip_waiting_for_build_processing: true)