【问题标题】:How to update XCODE version to 13.4.1 in Azure Pipeline?如何在 Azure Pipeline 中将 XCODE 版本更新为 13.4.1?
【发布时间】:2022-09-02 13:30:37
【问题描述】:

我正在使用 azure 管道部署应用程序得到以下错误

module compiled with Swift 5.6.1 cannot be imported by the Swift 5.5.

我已尝试更改配置但没有运气,任何帮助将不胜感激

语言环境机器文件和配置

  • MacOS 12.5.1
  • Xcode 版本为 13.4.1

Azure 执行低于 xcode 的版本

  • Xcode 13.2.1

.yml 文件

trigger:
- main

  pool:
   vmImage: 'macOS-latest'

  variables:
  - group: App Variables

 steps:
- task: NodeTool@0
  inputs:
      versionSpec: '12.19.0'
  displayName: 'Install Node.js'

- script: yarn install
  displayName: Install Dependencies

- task: CocoaPods@0
  inputs:
      workingDirectory: ios
      forceRepoUpdate: false
      displayName: 'Install CocoaPods dependencies'

- task: Xcode@5
  inputs:
      actions: 'build'
      configuration: 'Release'
      sdk: 'iphoneos15.2'
      xcWorkspacePath: 'ios/EsApp.xcworkspace'
      scheme: 'EsApp'
      packageApp: true
      archivePath: 'output/archive'
      exportPath: 'output/package'
      exportOptions: plist
      exportOptionsPlist: 'ios/ExportOptions.plist'

【问题讨论】:

    标签: xcode react-native azure-devops azure-pipelines testflight


    【解决方案1】:

    根据您的描述,这个问题与微软托管代理的XCODE版本有关,在“macOS-latest”中使用的是“macOS 11 Big Sur”镜像,它支持的最高XCODE版本为13.2.1。

    您可以使用 Microsoft 托管的“macOS-12”代理来使用 XCODE 13.4.1。

    如果您提到SDK,请使用SDK "iphoneos15.5"

      pool:
       vmImage: 'macOS-12'
    

    关于微软托管代理软件的更多信息,您可以参考this

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-01-15
    • 2012-09-03
    • 2020-06-11
    • 2023-02-23
    • 2013-03-03
    • 2021-07-15
    • 2019-11-15
    相关资源
    最近更新 更多