1

我正在使用 circleci 2.0 构建我的 React Native iOS 应用程序,我的构建卡在 Signing 大约 40 分钟并且没有继续前进。我的苹果 id 是 2FA,所以在环境变量中添加了 FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD。我的 github id 也有 2FA,并且已经在 git 上部署了临时证书,其中 GH_TOKEN 在 circle ci env 中。变量。

我的 Fastlane 文件如下所示 -

update_fastlane

default_platform(:ios)

platform :ios do
  before_all do
    setup_circle_ci
  end
  desc "Push a new beta build to TestFlight"
  lane :beta do
    increment_build_number(xcodeproj: "xxxApp.xcodeproj")
    match(type:'adhoc')
    gym(export_method: "ad-hoc")
    build_app(workspace: "xxxApp.xcworkspace", scheme: "xxxApp")
    # upload_to_testflight
  end
end

我的圈子 ci config.yml 看起来像这样

version: 2
jobs:
  node:
    working_directory: ~/sekuraRN
    docker:
      - image: circleci/node:10.16.0
    steps:
      - checkout
      - run:
          name: set Ruby version
          command: echo "ruby-2.4" > ~/.ruby-version
      - run: npm install
      - persist_to_workspace:
          root: ~/xxxApp
          paths:
            - node_modules
  ios:
    macos:
      xcode: '11.2.1'
    resource_class: large
    working_directory: ~/xxxApp
    shell: /bin/bash --login -o pipefail
    steps:
      - checkout
      - add_ssh_keys:
          fingerprints:
            - "XXXXXXXX"
      - run:
          name: set Ruby version
          command: echo 'chruby ruby-2.5.7' >> ~/.bash_profile

      - run:
          name: Update Bundler version
          command: sudo gem install bundler:2.1.1

      - restore_cache:
          key: npm-v1-{{ checksum "package-lock.json" }}-{{ arch }}

      - restore_cache:
          key: node-v1-{{ checksum "package.json" }}-{{ arch }}

      - run: npm install
      - save_cache:
          key: npm-v1-{{ checksum "package-lock.json" }}-{{ arch }}
          paths:
            - ~/.cache/npm
      - save_cache:
          key: bundle-v1-{{ checksum "ios/Podfile.lock" }}
          paths:
            - ./Pods
      - save_cache:
          key: node-v1-{{ checksum "package.json" }}-{{ arch }}
          paths:
            - node_modules
      - run:
          command: bundle install
          working_directory: ios
      - save_cache:
          key: bundle-v1-{{ checksum "ios/Gemfile.lock" }}-{{ arch }}
          paths:
            - vendor/bundle
      - run:
          name: Setup MFSDK Configuration
          command: echo -e "machine repo.active.ai\nlogin docs@active.ai\npassword docs@123" > ~/.netrc
      - run:
          name: Uninstall Cocoapods
          command: gem uninstall cocoapods
      - run:
          name: Install Cocoapods
          command: gem install -n /usr/local/bin cocoapods
      - run:
          name: Pod Install
          command: pod install
          working_directory: ios
      - run:
          name: update fastlane
          command: bundle update fastlane
          working_directory: ios
      - run:
          name: Building IPA
          no_output_timeout: 30m
          command: bundle exec fastlane beta 
          working_directory: ios

      - store_artifacts:
          path: ios/xxx_app
          destination: ipa/

workflows:
  version: 2
  node-android-ios:
    jobs:
      - node
      - ios:
          filters:
            branches:
              only:
                - master
          requires:
            - node

CircleCI 的输出 -

[07:47:40]: ▸ the transform cache was reset.
[07:49:45]: ▸ Touching xxxApp.app
[07:49:45]: ▸ Signing /Users/distiller/Library/Developer/Xcode/DerivedData/…

它没有前进并停留在此 40 分钟

4

0 回答 0