Wednesday, May 29, 2024
HomeiOS Developmentios - xcodebuild fails to repeat SPM bundles on CI (GitHub Actions)

ios – xcodebuild fails to repeat SPM bundles on CI (GitHub Actions)


I am making an attempt to make a construct of my app utilizing GitHub Actions CI. Nevertheless, my construct is failing on this atmosphere and I am failing to know why…

Here is my yml config file:

title: Finish-to-Finish iOS Checks with Sauce Labs

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request occasions however just for the grasp department
  push:
    branches: [master]
    paths:
      - "ios/**/*"
  pull_request:
    branches: [master]
    paths:
      - "ios/**/*"

  # Means that you can run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of a number of jobs that may run sequentially or in parallel
jobs:
  # This workflow comprises a single job known as "construct"
  construct:
    # The kind of runner that the job will run on
    runs-on: macos-14
    title: E2E exams
    # Steps symbolize a sequence of duties that shall be executed as a part of the job
    steps:
      - makes use of: maxim-lobanov/setup-xcode@v1
        with:
            xcode-version: latest-stable

      - title: Checkout the code
        makes use of: actions/checkout@v4

      - title: Generate a construct
        run: xcodebuild ARCHS=x86_64 clear construct -project "My Mission.xcodeproj" -scheme "My Mission" -sdk iphonesimulator -destination 'platform=iOS Simulator,title=iPhone 15 Professional Max,OS=17.4' -UseModernBuildSystem=YES -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
        working-directory: ./ios

And this is the error I am encountering:

2024-04-17T13:26:19.3570770Z ** BUILD FAILED **
2024-04-17T13:26:19.3570910Z 
2024-04-17T13:26:19.3570910Z 
2024-04-17T13:26:19.3571000Z The next construct instructions failed:
2024-04-17T13:26:19.3572940Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_StripeUICore.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_StripeUICore.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3576630Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_StripePaymentsUI.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_StripePaymentsUI.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3581230Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_StripePayments.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_StripePayments.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3585070Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_StripePaymentSheet.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_StripePaymentSheet.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3588560Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_StripeCore.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_StripeCore.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3592190Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_StripeCardScan.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_StripeCardScan.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3596380Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_Stripe3DS2.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_Stripe3DS2.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3599820Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Stripe_Stripe.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Stripe_Stripe.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3603360Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/Sentry_SentryPrivate.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/Sentry_SentryPrivate.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3607080Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/SDWebImage_SDWebImage.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/SDWebImage_SDWebImage.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3611230Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/PhoneNumberKit_PhoneNumberKit.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/PhoneNumberKit_PhoneNumberKit.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3615470Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/MapboxMaps_MapboxMaps.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/MapboxMaps_MapboxMaps.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3619380Z    Copy /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/My Mission.app/CodeScanner_CodeScanner.bundle /Customers/runner/Library/Developer/Xcode/DerivedData/My_Project-ayymvkrodrcpfzfpxkejssmcssuc/Construct/Merchandise/Launch Improvement-iphonesimulator/CodeScanner_CodeScanner.bundle (in goal 'My Mission' from venture 'My Mission')
2024-04-17T13:26:19.3621770Z (13 failures)
2024-04-17T13:26:19.4045210Z ##[error]Course of accomplished with exit code 65.

I do not perceive why I get this error. The venture builds appropriately on my Mac, and I also have a working workflow on Xcode Cloud with the identical repository. Solely on GitHub Actions have I had points…

Any assist could be appreciated.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments