Aggiungi fix-ios.sh
This commit is contained in:
parent
8711aee140
commit
c4fdd8242f
1 changed files with 24 additions and 0 deletions
24
fix-ios.sh
Normal file
24
fix-ios.sh
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
TARGET_VERSION="15.0"
|
||||||
|
|
||||||
|
echo "🔧 Imposto minVersion in capacitor.config.json..."
|
||||||
|
jq ".ios.minVersion = \"$TARGET_VERSION\"" capacitor.config.json > capacitor.tmp.json && mv capacitor.tmp.json capacitor.config.json
|
||||||
|
|
||||||
|
echo "🔧 Aggiorno Podfile..."
|
||||||
|
sed -i '' "s/platform :ios, '.*'/platform :ios, '$TARGET_VERSION'/" ios/App/Podfile
|
||||||
|
|
||||||
|
echo "🧹 Pulizia Pods..."
|
||||||
|
cd ios/App || exit
|
||||||
|
rm -rf Pods Podfile.lock
|
||||||
|
pod cache clean --all
|
||||||
|
pod deintegrate
|
||||||
|
|
||||||
|
echo "📦 Reinstallo Pods..."
|
||||||
|
pod install --repo-update
|
||||||
|
|
||||||
|
echo "🔄 Torno alla root e sincronizzo Capacitor..."
|
||||||
|
cd ../..
|
||||||
|
npx cap sync ios
|
||||||
|
|
||||||
|
echo "🎉 Fatto! Il progetto iOS è ora allineato a iOS $TARGET_VERSION"
|
||||||
Loading…
Reference in a new issue