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

后端 未结 3 1051
别跟我提以往
别跟我提以往 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:54

    Here's how we got building an iOS app with multiple provisioning profiles to work in Azure DevOps.

    • Ensure you have the Apple App Store Azure DevOps extension written by Microsoft installed in your account.
    • Install all of the provisioning profiles that are needed using multiple Install Apple Provisioning Profile tasks
    • Add the Xcode build task and configure it with your workspace/project settings
    • Set the "Signing style" to "Automatic signing" and provide your team ID in the "Team ID" field under the "Signing & provisioning" section
    • Create a .plist file, configure it similar to the following, and put it somewhere (your code repository, secure files, etc). This example is of a watch app, but could be any scenario where multiple provisioning profiles are necessary. You can find a provisioning profile's UUID by opening it in a text editor and looking for the "UUID" key.
        
        
        
        
            provisioningProfiles
            
                YOUR_BUNDLE_ID.watchkitapp.watchkitextension
                UUID_OF_ASSOCIATED_PROVISIONING_PROFILE
                YOUR_BUNDLE_ID.watchkitapp
                UUID_OF_ASSOCIATED_PROVISIONING_PROFILE
                YOUR_BUNDLE_ID
                UUID_OF_ASSOCIATED_PROVISIONING_PROFILE
            
            signingCertificate
            iOS Distribution
            signingStyle
            manual
            method
            app-store
            teamID
            YOUR_TEAM_ID
        
        
    
    • Under the "Package options" section, specify "Plist" in the "Export options" field and provide a path to the .plist you created in the "Export options plist" field

提交回复
热议问题