Files
self/app/ios/scripts/pod-install-with-cache-fix.sh
Justin Hernandez 06a513918f Fix reproducible Ruby gem installs and upgrade dependencies (#1937)
* fixes?

* fix order

* fix nokogiri build error

* upgrade pkgs and lock

* update podfile lock

* fix resolutions

* speed up installs

* increase install speed

* pr feedback

* fix

* only build for relevant webview paths

* attempt to fix oom issue

* actually fix

* pr feedback

* updaet package
2026-04-07 23:27:51 -07:00

24 lines
821 B
Bash
Executable File

#!/bin/bash
# Pod install with an on-demand Hermes cache fix.
# Most installs should reuse CocoaPods caches; only clear them after a failure
# that is likely caused by a stale Hermes artifact from a React Native upgrade.
set -e
echo "📦 Attempting pod install with existing CocoaPods caches..."
if bundle exec pod install --no-repo-update; then
echo "✅ Pods installed successfully"
exit 0
fi
echo "⚠️ pod install failed; clearing Hermes cache and retrying..."
bundle exec pod cache clean hermes-engine --all > /dev/null 2>&1 || true
echo "🔧 Running targeted fix: bundle exec pod update hermes-engine..."
bundle exec pod update hermes-engine --no-repo-update --verbose
echo "🔄 Retrying pod install..."
bundle exec pod install --no-repo-update
echo "✅ Pods installed successfully after cache fix"