Ios 如何在运行时在Microsoft Azure Devops中编辑PodFile?

Ios 如何在运行时在Microsoft Azure Devops中编辑PodFile?,ios,angular,xcode,azure-devops,Ios,Angular,Xcode,Azure Devops,我一直在尝试在Microsoft Azure中为iOS构建CI/CD。下面是我创建的任务 问题始于Xcode构建IPA,我面临这个错误 error: PromisesObjC does not support provisioning profiles. PromisesObjC does not support provisioning profiles, but provisioning profile (scheme_name)-CI/CD has been manually speci

我一直在尝试在Microsoft Azure中为iOS构建CI/CD。下面是我创建的任务

问题始于Xcode构建IPA,我面临这个错误

error: PromisesObjC does not support provisioning profiles. PromisesObjC does not support provisioning profiles, but provisioning profile (scheme_name)-CI/CD has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'PromisesObjC' from project 'Pods')
我做了一些研究,发现这类错误通常来自Podfile,我在Podfile所在的platforms/ios文件夹中做了以下更改

 platform :ios, '9.0'

# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
#use_frameworks!

#--- This was what we had missing ---
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中运行CI部件时,我不会再次添加平台,因为它可以覆盖pod文件,也不会安装pod,因为我认为这也会覆盖pod文件。但当我运行它的时候,我仍然面临这样的问题

error: GoogleUtilities does not support provisioning profiles. GoogleUtilities does not support provisioning profiles, but provisioning profile QianNow-CI/CD has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'GoogleUtilities' from project 'Pods')

如果您看到我做错了什么或您在建议中有什么建议,请告诉我

您可以尝试在Xcode任务中不对代码进行签名,方法是将
签名样式设置为
不进行代码签名
。在您获得未签名的.ipa之后。然后可以使用bash任务对其进行签名。请参见在脚本中签名.ipa。