简体   繁体   中英

Unable to export an ipa file in azure devops

I'm trying to build a CI pipeline for my xCode project. I've been struggling with this for the past 2 days.

These are the tasks used in my pipeline:

  1. Install an Apple Certificate
  2. Install an Apple provisioning profile
  3. pod install
  4. Xcode build & clean
  5. Copy files to $(build.artifactstagingdirectory)
  6. Publish Artifacts to drop folder

I've seen in the documentation that we need to check the Create App Package checkbox if we need to have and ipa package. But whenever I check the check

❌ error: No profile for team 'teamID' matching 'provision_name.mobileprovision' found: Xcode couldn't find any provisioning profiles matching 'teamId/provision_name.mobileprovision'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'project_name' from project 'project_name')

Here's a two snippets about signing and exporting options in xCode build task:

签名和配置

包装选项

So anyone have an idea why this issue is happening?

As Paulw11 mentioned in his comments above, the issue was in setting the name of the provisioning profile in Signing & Provisioning section.

As he said, the Install an Apple provisioning profile will set the UUID variable needed in the task mentioned above. It will be populated while the pipeline is running.

So here's the working pipeline for me now:

Tasks:

管道任务

Signing & provisioning properties:

签名和配置属性

Package options:

套餐选项

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM