Azure DevOps Fastlane 管道实施

SHA*_*ZAY 5 azure ios react-native fastlane azure-devops

希望你做得很好。我目前正在致力于在 azure devOps 管道中为 iOS 的 React 本机移动应用程序实现 fastlane。我需要使用代码将测试版上传到 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'
Run Code Online (Sandbox Code Playgroud)