diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f78765..41a2594 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,12 +33,12 @@ jobs: - name: Build simulator zips (arm64 + x86_64) run: make sim-zip - - name: Upload unsigned IPA artifact + - name: Upload IPA artifacts uses: actions/upload-artifact@v5 if: success() with: - name: devicekit-ios-unsigned-ipa - path: build/export/*-unsigned.ipa + name: devicekit-ios-ipa + path: build/export/*.ipa retention-days: 4 - name: Upload simulator zip artifacts @@ -59,10 +59,10 @@ jobs: attestations: write steps: - - name: Download IPA artifact + - name: Download IPA artifacts uses: actions/download-artifact@v5 with: - name: devicekit-ios-unsigned-ipa + name: devicekit-ios-ipa - name: Download simulator zip artifacts uses: actions/download-artifact@v5 @@ -73,7 +73,7 @@ jobs: uses: actions/attest-build-provenance@v2 with: subject-path: | - *-unsigned.ipa + *.ipa *-Sim-*.zip - name: Upload to GitHub Release @@ -83,5 +83,5 @@ jobs: with: name: Version ${{ github.ref_name }} files: | - *-unsigned.ipa + *.ipa *-Sim-*.zip diff --git a/Makefile b/Makefile index 36509f0..0b44336 100644 --- a/Makefile +++ b/Makefile @@ -28,9 +28,9 @@ debug: release: @$(MAKE) build CONFIGURATION=Release -# Create unsigned IPA with host app and UITests runner (for later resigning) +# Create unsigned IPA with XCUITest runner for real iOS devices ipa-unsigned: - @echo "Building unsigned app and test runner for arm64 iOS devices..." + @echo "Building unsigned test runner for arm64 iOS devices..." xcodebuild build-for-testing \ -project $(PROJECT) \ -scheme $(SCHEME) \ @@ -40,14 +40,15 @@ ipa-unsigned: CODE_SIGN_IDENTITY="" \ CODE_SIGNING_REQUIRED=NO \ CODE_SIGNING_ALLOWED=NO | xcbeautify - @echo "Packaging unsigned IPA..." + @scripts/patch-runner.sh "$(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos" + @echo "Packaging runner IPA..." + @rm -rf $(EXPORT_PATH)/Payload + @rm -f $(EXPORT_PATH)/$(SCHEME)-runner.ipa @mkdir -p $(EXPORT_PATH)/Payload - @cp -r $(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos/$(SCHEME).app $(EXPORT_PATH)/Payload/ @cp -r "$(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos/$(SCHEME)UITests-Runner.app" $(EXPORT_PATH)/Payload/ - @scripts/patch-runner.sh "$(BUILD_DIR)/Build/Products/$(CONFIGURATION)-iphoneos" "$(EXPORT_PATH)/Payload" - @cd $(EXPORT_PATH) && zip -r $(SCHEME)-unsigned.ipa Payload + @cd $(EXPORT_PATH) && zip -r $(SCHEME)-runner.ipa Payload @rm -rf $(EXPORT_PATH)/Payload - @echo "Unsigned IPA created at: $(EXPORT_PATH)/$(SCHEME)-unsigned.ipa" + @echo "Runner IPA created at: $(EXPORT_PATH)/$(SCHEME)-runner.ipa" # Build XCUITest runner for iOS Simulator (arm64 — Apple Silicon) sim-zip-arm64: