如何修复Azure devops build agent中的'* pod *不支持配置文件' [英] How to fix ' *pod* does not support provisioning profiles' in azure devops build agent

查看:160
本文介绍了如何修复Azure devops build agent中的'* pod *不支持配置文件'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在Azure Devops中的管道存在问题.自3月27日以来,我收到了错误消息:

I currently have problem with my pipeline in Azure Devops. Since March 27th, I got the error:

错误:Alamofire不支持配置文件. Alamofire不支持供应配置文件,但是已手动指定了供应配置文件prov配置文件名称.在构建设置编辑器中将供应配置文件值设置为自动". (在目标"Alamofire"中)

error: Alamofire does not support provisioning profiles. Alamofire does not support provisioning profiles, but provisioning profile prov profile name has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'Alamofire')

我所有的吊舱都有此错误.

代码: 前一天正确建立了完全相同的分支.

The code: The exact same branch have built correctly the day before.

Xcode版本: 我知道该代理仍在Xcode 10.1上,并且我还没有将项目更新到10.2,所以应该很好.

Xcode version: I know the agent is still on Xcode 10.1 and I haven't update my project to 10.2 so it should be good.

设置配置文件: 有效.

怀疑:Apple在这一天发布了新版本的Xcode和Swift.微软也在这一天更新了代理:github.com/Microsoft/azure-pipelines-tasks/commit/1b019b9f65202d65ac58150bff6514938b53ff78#diff-93b5db3773bba1013dce9d814869dffd

太好了,有人有主意吗?我的管道有什么问题?

Soooo, anyone have an idea? What is wrong with my pipeline ?

推荐答案

问题是最新版本的Cocoapods正在尝试对框架进行签名.

The issue is that the newest version of Cocoapods is trying to sign the frameworks.

将以下代码添加到您的Podfile

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
        end
    end
end

这篇关于如何修复Azure devops build agent中的'* pod *不支持配置文件'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆