How to fix ' *pod* does not support provisioning profiles' in azure devops build agent

戏子无情 提交于 2020-07-17 08:10:49

问题


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

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')

I have this error for all my pods.

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

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.

Provisioning profiles: Is valid.

Suspicion : Apple released a new version of Xcode and Swift on this day. Microsoft also update Agents on this day: github.com/Microsoft/azure-pipelines-tasks/commit/1b019b9f65202d65ac58150bff6514938b53ff78#diff-93b5db3773bba1013dce9d814869dffd

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


回答1:


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

Add the following code to your 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


来源:https://stackoverflow.com/questions/55419956/how-to-fix-pod-does-not-support-provisioning-profiles-in-azure-devops-build

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!