@@ -203,70 +203,12 @@ jobs:
203203 echo "Created device ipa: $OUTPUT_IPA"
204204 ls -la "$OUTPUT_IPA" || true
205205
206- - name : Build Simulator IPA
207- run : |
208- set -e
209- echo "Starting simulator build (won't fail the entire job if it fails)."
210- SIM_DERIVED="$PWD/build/sim_derived"
211- rm -rf "$SIM_DERIVED"
212- set +e
213- xcodebuild clean build \
214- -project prostore.xcodeproj \
215- -scheme prostore \
216- -configuration Release \
217- -sdk iphonesimulator \
218- -derivedDataPath "$SIM_DERIVED" \
219- CODE_SIGNING_ALLOWED=NO CODE_SIGN_IDENTITY=""
220- rc=$?
221- set -e
222- if [ $rc -ne 0 ]; then
223- echo "Warning: simulator build failed (exit $rc). Will attempt to recover packaging if a simulator .app exists."
224- fi
225-
226- POSSIBLE_APPS=(
227- "$SIM_DERIVED/Build/Products/Release-iphonesimulator/prostore.app"
228- "$SIM_DERIVED/Build/Products/Debug-iphonesimulator/prostore.app"
229- "$PWD/build/Build/Products/Release-iphonesimulator/prostore.app"
230- "$PWD/build/Release-iphonesimulator/prostore.app"
231- )
232-
233- FOUND_APP=""
234- for p in "${POSSIBLE_APPS[@]}"; do
235- if [ -d "$p" ]; then
236- FOUND_APP="$p"
237- break
238- fi
239- done
240-
241- if [ -z "$FOUND_APP" ]; then
242- echo "Simulator .app not found in expected locations. Listing $SIM_DERIVED contents for debug:"
243- ls -la "$SIM_DERIVED" || true
244- echo "Skipping simulator .ipa packaging."
245- exit 0
246- fi
247-
248- echo "Found simulator .app at: $FOUND_APP"
249- SIM_IPA="build/com.prostoreios.prostore-unsigned-iossimulator.ipa"
250- mkdir -p build/Payload-sim
251- rm -rf build/Payload-sim/* || true
252- cp -R "$FOUND_APP" build/Payload-sim/
253- (cd build && zip -r "$(basename "$SIM_IPA")" Payload-sim) || exit 1
254- echo "Created simulator ipa: $SIM_IPA"
255- ls -la "$SIM_IPA" || true
256-
257206 - name : Upload Device IPA
258207 uses : actions/upload-artifact@v4
259208 with :
260209 name : com.prostoreios.prostore-unsigned-ios.ipa
261210 path : build/com.prostoreios.prostore-unsigned-ios.ipa
262211
263- - name : Upload Simulator IPA
264- uses : actions/upload-artifact@v4
265- with :
266- name : com.prostoreios.prostore-unsigned-iossimulator.ipa
267- path : build/com.prostoreios.prostore-unsigned-iossimulator.ipa
268- if-no-files-found : ignore
269-
270212 - name : Get App Version
271213 id : get_version
272214 run : |
@@ -427,13 +369,6 @@ jobs:
427369 name : com.prostoreios.prostore-unsigned-ios.ipa
428370 path : build
429371
430- - name : Download Simulator IPA
431- uses : actions/download-artifact@v4
432- continue-on-error : true
433- with :
434- name : com.prostoreios.prostore-unsigned-iossimulator.ipa
435- path : build
436-
437372 - name : Create Release
438373 env :
439374 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -444,13 +379,8 @@ jobs:
444379 echo "Creating release $TAG with notes:"
445380 printf '%s\n' "$CHANGELOG"
446381 DEVICE_IPA="build/com.prostoreios.prostore-unsigned-ios.ipa"
447- SIM_IPA="build/com.prostoreios.prostore-unsigned-iossimulator.ipa"
448- SIM_ARG=""
449- if [ -f "$SIM_IPA" ]; then
450- SIM_ARG="$SIM_IPA"
451- fi
452382 gh release create "$TAG" \
453- "$DEVICE_IPA" $SIM_ARG \
383+ "$DEVICE_IPA" \
454384 --title "ProStore v$VERSION" \
455385 --notes "$CHANGELOG" \
456386 --repo "$GITHUB_REPOSITORY"
@@ -636,4 +566,4 @@ jobs:
636566 git commit -m "Update apps.json from ProStore v${VERSION}"
637567 echo "Pushing apps.json to ${PAGES_REPO}:main"
638568 git push "https://x-access-token:${PAGES_PAT}@github.com/${PAGES_REPO}.git" HEAD:main
639- shell : bash
569+ shell : bash
0 commit comments