2

I want to release my ios app with shorebird codemagic action. But I got an error on Step Name => 🙌 Shorebird Build.

Previously, I could get release without using shorebird.

Error=>

[WARN] iOS support is alpha. See ]8;;https://docs.shorebird.dev/status#ios-alpha\https://docs.shorebird.dev/status#ios-alpha]8;;\ for more information.
⠋ Fetching apps...
✓ Fetching apps (0.2s)
⠋ Building release...
✗ Failed to build (197.0s)
    No Accounts
    No profiles for 'x.x.x' were found


Build failed :|
Step 11 script `🙌 Shorebird Build` exited with status code 70

Workflow =>

workflows:
  ios-shorebird-workflow:
    instance_type: mac_mini_m1
    name: iOS ShoreBird Workflow
    environment:
      ios_signing:
        provisioning_profiles:
          - For CodeMagic
        certificates:
          - Code Magic Certificate
      flutter: 3.10.6
      cocoapods: 1.13.0
      xcode: 15.0
      groups:
        - shorebird
        - appstore

    triggering:
      events:
        - tag

    cache:
      cache_paths:
        - $FLUTTER_ROOT/.pub-cache
        - $HOME/Library/Caches/CocoaPods

    integrations:
      app_store_connect: "IOS Codemagic Integration"

    publishing:
      app_store_connect:
        auth: integration
        submit_to_testflight: true

    artifacts:
      - build/ios/ipa/*.ipa

    scripts:
      - name: 🐦 Setup Shorebird
        script: |
          # Install Shorebird
          curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash
          
          # Add Shorebird to PATH
          echo PATH="$HOME/.shorebird/bin:$PATH" >> $CM_ENV

      - name: Shorebird flutter versions set to 3.10.6
        script: |
          shorebird flutter versions use 3.10.6

      - name: Set up code signing settings on Xcode project
        script: |
          xcode-project use-profiles

      - name: Flutter Packages Get and Translations
        script: |
          flutter pub get
          flutter packages pub global activate intl_utils
          flutter --no-color pub global run intl_utils:generate

      - name: Pods Install
        script: |
          rm -rf ios/Podfile.lock
          pod install --repo-update --project-directory=./ios

      - name: 🙌 Shorebird Build
        script: |
          echo "➡️ Using tag: $CM_TAG"
          
          # Check type and run corresponding command
          if [ "$TYPE" == *"#"* ]; then
            echo "🩹 Running patch command"
            shorebird patch ios-alpha --force
          else
            echo "🚀 Running release command"
            shorebird release ios-alpha --force
          fi

I tried to get the release without using Shorebird, no problem. I tried signing the application in different ways on the CodeMagic workflow, but the result did not change.

1 Answer 1

5

I solved the problem by adding this parameter to shorebird release command

-- --export-options-plist=/Users/builder/export_options.plist

      - name: 🙌 Shorebird Build
        script: |
          echo "➡️ Using tag: $CM_TAG"
          
          # Check type and run corresponding command
          if [ "$TYPE" == *"#"* ]; then
            echo "🩹 Running patch command"
            shorebird patch ios-alpha --force
          else
            echo "🚀 Running release command"
            shorebird release ios-alpha --force \
              -- --export-options-plist=/Users/builder/export_options.plist
          fi

Sign up to request clarification or add additional context in comments.

1 Comment

With the latest version of shorebird cli , it seems you have to set manageAppVersionAndBuildNumber to false in /Users/builder/export_options.plist. /usr/libexec/PlistBuddy -c 'Add :manageAppVersionAndBuildNumber bool false' /Users/builder/export_options.plist

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.