Azure Devops Pipelines - Xcode project with multiple provisioning profiles fails archive and sign

后端 未结 3 1035
别跟我提以往
别跟我提以往 2020-12-20 03:31

I\'m new to DevOps so please go easy on me if I\'ve missed something basic :)

I’m using the following in Azure Pipelines: Hosted MacOS with an Xcode Build Agent (Xcod

3条回答
  •  时光说笑
    2020-12-20 03:46

    Make sure to correctly target your Project's .xcworkspace file instead of letting it default to .xcodeproj/project.xcworkspace. This haunted me for two days while testing.

    Example:

    - task: Xcode@5
      inputs:
        sdk: '$(sdk)'
        scheme: '$(scheme)'
        configuration: '$(configuration)'
        xcWorkspacePath: '**/.xcworkspace' # Make sure this line is here
        xcodeVersion: 'default' # Options: default, 10, 9, 8, specifyPath
        exportPath: '$(agent.buildDirectory)/output/$(sdk)/$(configuration)'
    

提交回复
热议问题