Files
self/packages/mobile-sdk-demo/ios/scripts/pod-install-with-cache-fix.sh
Justin Hernandez ccb9e148be App polish for 2.9 rd1 (#1359)
* add useSafeBottomPadding

* add bottom padding to dev screen

* use safe bottom padding

* skip uploading if building android bundle locally

* fix tests

* cache fix script

* clean up country picker, fix font color

* sort package jsons, add watcher for mobile sdk

* formatting

* only bump versions for successfull builds

* move all css

* cleaner script

* kill watchers before starting new one
2025-11-07 10:26:08 -08:00

23 lines
829 B
Bash
Executable File

#!/bin/bash
# Pod install with hermes-engine cache fix for React Native upgrades
# This script handles CocoaPods cache mismatches that occur after React Native version upgrades
set -e # Exit on any error
echo "🧹 Clearing CocoaPods cache to prevent hermes-engine version conflicts..."
pod cache clean --all > /dev/null 2>&1 || true
rm -rf ~/Library/Caches/CocoaPods > /dev/null 2>&1 || true
echo "📦 Attempting pod install..."
if pod install; then
echo "✅ Pods installed successfully"
else
echo "⚠️ Pod install failed, likely due to hermes-engine cache mismatch after React Native upgrade"
echo "🔧 Running targeted fix: pod update hermes-engine..."
pod update hermes-engine --no-repo-update
echo "🔄 Retrying pod install..."
pod install
echo "✅ Pods installed successfully after cache fix"
fi