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.
This commit is contained in:
Adam Moussa 2026-05-19 18:54:42 -04:00
parent 0326909e51
commit 8b997b9086

View file

@ -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)