0

flutter/install_sdk_and_pub使用 Flutter 版本参数执行 CircleCI/flutter orb 命令时出现奇怪的错误:

Error calling workflow: 'distribute'Error calling job: 'distribute'Error calling command: 'flutter/install_sdk_and_pub'Unexpected argument(s): version

完整的 yaml 文件:

orbs:
  flutter: circleci/flutter@1.0.1
jobs:
  distribute:
    macos:
      xcode: 12.8.1
    steps:
      - checkout
      - flutter/install_sdk_and_pub:
          version: 2.2.3
          app-dir: ./app
      - flutter/install_ios_pod:
          app-dir: ./app
      - flutter/install_ios_gem:
          app-dir: ./app
      - run:
          command: bundle exec fastlane ios distribute
          working_directory: ios
workflows:
  distribute:
    jobs:
      - distribute```
4

1 回答 1

0

使用flutter_version而不是version修复错误:

- flutter/install_sdk_and_pub:
          flutter_version: 2.8.1
于 2022-02-24T06:33:56.370 回答