@@ -135,17 +135,50 @@ jobs:
135135
136136 - name : Build IPA
137137 working-directory : opencli_mobile
138+ env :
139+ IPHONEOS_DEPLOYMENT_TARGET : ' 13.0'
138140 run : |
139141 echo "🔨 Building iOS IPA..."
140142
141- # Build using flutter - the installed certificate and provisioning profile
142- # combined with ExportOptions.plist should be sufficient
143143 flutter build ipa --release \
144144 --export-options-plist=ios/ExportOptions.plist
145145
146146 echo "✅ IPA built successfully"
147147 ls -lh build/ios/ipa/
148148
149+ - name : Fix App.framework MinimumOSVersion
150+ working-directory : opencli_mobile
151+ run : |
152+ echo "🔧 Fixing App.framework Info.plist..."
153+
154+ # Find the IPA file
155+ IPA_FILE=$(find build/ios/ipa -name "*.ipa" | head -n 1)
156+
157+ # Create a temporary directory
158+ TEMP_DIR=$(mktemp -d)
159+
160+ # Unzip the IPA
161+ unzip -q "$IPA_FILE" -d "$TEMP_DIR"
162+
163+ # Fix App.framework Info.plist
164+ APP_PLIST="$TEMP_DIR/Payload/Runner.app/Frameworks/App.framework/Info.plist"
165+ if [ -f "$APP_PLIST" ]; then
166+ /usr/libexec/PlistBuddy -c "Add :MinimumOSVersion string 13.0" "$APP_PLIST" 2>/dev/null || \
167+ /usr/libexec/PlistBuddy -c "Set :MinimumOSVersion 13.0" "$APP_PLIST"
168+ echo "✅ Set MinimumOSVersion to 13.0 in App.framework"
169+ /usr/libexec/PlistBuddy -c "Print :MinimumOSVersion" "$APP_PLIST"
170+ fi
171+
172+ # Repackage the IPA
173+ cd "$TEMP_DIR"
174+ zip -qr "$IPA_FILE" Payload
175+ cd -
176+
177+ # Cleanup
178+ rm -rf "$TEMP_DIR"
179+
180+ echo "✅ IPA fixed and repackaged"
181+
149182 - name : Upload IPA Artifact
150183 uses : actions/upload-artifact@v4
151184 with :
0 commit comments