From 28df0b0c3935a3ae4910a9b7beca0a237c44ef2a Mon Sep 17 00:00:00 2001 From: se2crid <151872490+se2crid@users.noreply.github.com> Date: Thu, 27 Mar 2025 19:02:38 +0100 Subject: [PATCH] Update build_ipa.yml --- .github/workflows/build_ipa.yml | 59 +++++++++++++++++++++------------ 1 file changed, 37 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build_ipa.yml b/.github/workflows/build_ipa.yml index efb05d9..87f1960 100644 --- a/.github/workflows/build_ipa.yml +++ b/.github/workflows/build_ipa.yml @@ -11,34 +11,49 @@ on: jobs: build: runs-on: macos-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 + - name: Checkout code + uses: actions/checkout@v3 - - name: Set up Xcode - run: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer - - - name: Install dependencies + - name: Build archive run: | - brew install cocoapods - pod install --project-directory=. + # Build the archive using the Xcode project and scheme. + xcodebuild -project StikJIT.xcodeproj \ + -scheme StikJIT \ + -configuration Release \ + archive \ + -archivePath build/StikJIT.xcarchive - - name: Build IPA for sideloading + - name: Create ExportOptions.plist + run: | + # Create an export options plist file for exporting the archive. + # Adjust the method (development, ad-hoc, app-store, enterprise) as needed. + cat > ExportOptions.plist < + + + + method + development + signingStyle + automatic + + + + + EOF + + - name: Export IPA run: | - xcodebuild -workspace StikJIT.xcworkspace \ - -scheme StikJIT \ - -sdk iphoneos \ - -configuration Release \ - -archivePath ${{ github.workspace }}/StikJIT.xcarchive archive xcodebuild -exportArchive \ - -archivePath ${{ github.workspace }}/StikJIT.xcarchive \ - -exportPath ${{ github.workspace }}/build \ - -exportOptionsPlist ExportOptions.plist \ - -allowProvisioningUpdates + -archivePath build/StikJIT.xcarchive \ + -exportOptionsPlist ExportOptions.plist \ + -exportPath build - name: Upload IPA artifact - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 with: - name: StikJIT.ipa - path: build/StikJIT.ipa + name: StikJIT-IPA + path: build/*.ipa +