Saturday, November 21, 2026
HomeiOS Developmentflutter - Firebase iOS TestLab failed throughout validation: The XCTest zip file...

flutter – Firebase iOS TestLab failed throughout validation: The XCTest zip file was malformed

[ad_1]

I’ve created iOS Lane for importing Flutter integration assessments to Firebase TestLab and it fails when attempting to run the check. Once I add manually ios_tests.zip file which accommodates Runner_iphoneos folder and Release_iphoneos15.2-arm64.xctestrun, it cross on TestLab, however when utilizing workflow .yml file in github motion, TestLab fails to execute the assessments.

Right here is the error log for particular failing half:

Importing [build/ios_integ/Build/Products/ios_tests.zip] to Firebase Take a look at Lab...

Take a look at [matrix-1aenoclku3vww] has been created within the Google Cloud.

Firebase Take a look at Lab will execute your xctest check on 1 machine(s).

Creating particular person check executions...................failed.

ERROR: (gcloud.firebase.check.ios.run) 

Matrix [matrix-1aenoclku3vww] failed throughout validation: The XCTest zip file was malformed. The zip didn't include a single .xctestrun file and the contents of the DerivedData/Construct/Merchandise listing..

So the ios_tests.zip file is uploaded and I can discover it in GCS bucket. Once I extract it I can discover all of the recordsdata. However when I attempt to manually add this file to TestLab it offers the identical error. Looks as if it’s someway modified within the construct or add course of.
Additionally it’s unusual that logs say that Matrix [matrix-1aenoclku3vww] is created, however I can’t see it in firebase console in TestLab. Like its not run in any respect.

That is the .yml script I exploit, it fails solely at “Run Instrumentation Exams in Firebase Take a look at Lab”:

title: Firebase_test
on: [workflow_dispatch]
jobs:
  iOS_Lane:
    title: iOS Lane
    runs-on: macos-latest
    env:
      PROJECT_DIRECTORY: cicd
    defaults:
      run:
        working-directory: ./${{ env.PROJECT_DIRECTORY }}
    steps:
      - makes use of: actions/checkout@v3
      - makes use of: actions/setup-java@v2
        with:
          distribution: "zulu"
          java-version: "11"
      - makes use of: subosito/flutter-action@v2
        with:
          flutter-version: "3.0.2"

      - title: Fetching Flutter dependencies
        run: flutter pub get

      - title: Set up the Apple certificates and provisioning profile
        env:
          BUILD_CERTIFICATE_BASE64: ${{ secrets and techniques.BUILD_CERTIFICATE_BASE64 }}
          P12_PASSWORD: ${{ secrets and techniques.P12_PASSWORD }}
          BUILD_PROVISION_PROFILE_BASE64: ${{ secrets and techniques.BUILD_PROVISION_PROFILE_BASE64 }}
          KEYCHAIN_PASSWORD: ${{ secrets and techniques.KEYCHAIN_PASSWORD }}
        run: |
          # create variables
          CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
          PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
          KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
          # import certificates and provisioning profile from secrets and techniques
          echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode --output $CERTIFICATE_PATH
          echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode --output $PP_PATH
          # create non permanent keychain
          safety create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
          safety set-keychain-settings -lut 21600 $KEYCHAIN_PATH
          safety unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
          # import certificates to keychain
          safety import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
          safety list-keychain -d consumer -s $KEYCHAIN_PATH
          # apply provisioning profile
          mkdir -p ~/Library/MobileDevice/Provisioning Profiles
          cp $PP_PATH ~/Library/MobileDevice/Provisioning Profiles

      - title: Construct Firebase debug
        run: flutter construct ios integration_test/smoke_test.dart --release

      - title: Construct Firebase construct
        env:
          OUTPUT_PATH: ../construct/ios_integ
        run: |
          pushd ios
          xcodebuild clear construct -workspace Runner.xcworkspace -scheme Runner -config Flutter/Launch.xcconfig -derivedDataPath $OUTPUT_PATH -sdk iphoneos build-for-testing
          popd
      - title: Zip Firebase construct
        env:
          PRODUCT_PATH: construct/ios_integ/Construct/Merchandise
          DEV_TARGET: 15.2
        run: |
          pushd $PRODUCT_PATH
          zip -r "ios_tests.zip" "Launch-iphoneos" "Runner_iphoneos$DEV_TARGET-arm64.xctestrun"
          popd
      - id: "auth"
        makes use of: "google-github-actions/auth@v0"
        with:
          credentials_json: "${{ secrets and techniques.FIREBASE_SERVICE_JSON }}"

      - title: "Arrange Cloud SDK"
        makes use of: "google-github-actions/setup-gcloud@v0"

      - title: "Use gcloud CLI"
        run: "gcloud information"

      - title: Set present undertaking
        run: gcloud config set undertaking ${{ secrets and techniques.GCP_PROJECT_ID }}

      - title: Run Instrumentation Exams in Firebase Take a look at Lab
        env:
          ZIP_LOCATION: construct/ios_integ/Construct/Merchandise/ios_tests.zip
          DEVICE_MODEL: iphone13pro,model=15.2,locale=en_US,orientation=portrait
        run: gcloud firebase check ios run --test $ZIP_LOCATION --device mannequin=$DEVICE_MODEL --timeout 3m

Thanks upfront!

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments