首页 > 解决方案 > 管道中的 Azure DevOps Fastlane 实现

问题描述

希望你做得很好。我目前正在为 iOS 的 react 本机移动应用程序在 azure devOps 管道中实现 fastlane。我需要使用代码将 beta 版本上传到 Apple Connect 上的 testFlight。我尝试进行 fastlane init,但在管道上似乎没有产生任何差异,所以我继续在 mac 上进行 fastlane init,然后将更改推送到 GitHub 项目。这是我的一段代码。代码编译但没有找到明显的输出。我是这项技术的新手,并且已经花了好几天的时间。请帮帮我。

pool:
  vmImage: 'macOS 10.14'


steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    echo Add other tasks to build, test, and deploy your project.
    echo See https://aka.ms/yaml
  displayName: 'Run a multi-line script'

- task: UseRubyVersion@0
  inputs:
    versionSpec: '>= 2.4'

- task: NodeAndNpmTool@1
  inputs:
    versionSpec: '10.x'
  displayName: 'Install Node'

- script: npm install
  displayName: 'Install dependencies'

  
- task: InstallAppleCertificate@2
  inputs:
    certSecureFile: '*****.p12'
    keychain: 'temp'
  displayName: Install Apple Certificate
  
- task: InstallAppleProvisioningProfile@1
  inputs:
    provisioningProfileLocation: 'secureFiles'
    provProfileSecureFile: '*****'
  displayName: 'Install Apple Provisioning Profile'

- script:
    cd myFirstApp
    npm install
    cd ios
    xcode-select --install
    bundle install
    bundle exec fastlane beta
  displayName: 'Build iOS'

标签: iosazurereact-nativeazure-devopsfastlane

解决方案


推荐阅读