ios - 带电容器的 Ionic 4 : xcodebuild fails with manual signing process

标签 ios xcode azure ionic4 capacitor

我正在尝试构建 Ionic 应用程序的 iOS 版本,该应用程序在我的持续集成系统 (Azure) 中使用电容器。

这是我得到的输出:

/usr/bin/xcodebuild -sdk iphoneos -configuration Release -workspace /Users/runner/runners/2.160.1/work/1/s/ios/App/App.xcworkspace -scheme App build CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=iPhone Distribution: <not_displayed> (ENT) PROVISIONING_PROFILE=5254b426-4af0-45e7-aeab-ec63a303d250 PROVISIONING_PROFILE_SPECIFIER=

Build settings from command line:
CODE_SIGN_IDENTITY = iPhone Distribution: swiss1mobile ag (ENT)
CODE_SIGN_STYLE = Manual
PROVISIONING_PROFILE = 5254b426-4af0-45e7-aeab-ec63a303d250
PROVISIONING_PROFILE_SPECIFIER = 
SDKROOT = iphoneos13.1

note: Using new build system
note: Planning build
note: Constructing build description
error: Capacitor does not support provisioning profiles. Capacitor does not support provisioning profiles, but provisioning profile ent_frontwork has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'Capacitor' from project 'Pods')
error: CapacitorCordova does not support provisioning profiles. CapacitorCordova does not support provisioning profiles, but provisioning profile ent_frontwork has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'CapacitorCordova' from project 'Pods')
error: Pods-App does not support provisioning profiles. Pods-App does not support provisioning profiles, but provisioning profile ent_frontwork has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor. (in target 'Pods-App' from project 'Pods')

** BUILD FAILED **

我一直在寻找,但没有运气。有什么线索吗?

最佳答案

一个小解决方法可以解决这个问题。我发现this Github 上的问题是由 cocoapods 更新引起的类似错误。我觉得它有点老套,但它确实有效。我不确定 Azure 是否应该修复其 xcode 任务以避免这些错误,但就目前而言,这已经足够了。

因此解决方法只是将以下代码添加到 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

这样 Pod 就不必签名,并且不再显示错误并且应用程序已构建。

关于ios - 带电容器的 Ionic 4 : xcodebuild fails with manual signing process,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58975122/

相关文章:

iphone - 如何将 XML 作为字符串发送到 Soap Action?

xcode - 将图像从 JSON 添加到文本字段

azure - Windows Azure 存储表中的事务和延续 token

excel - 仅使用 VBA 将数据从 Excel 365 上传到 Azure Sql Server

iphone - 自定义 UITableViewCell 顶部出现神秘圆线

xcode - 使用 Swift 将 UI 图像转至 ViewController

iOS - 处理大图像

azure - 如何在Azure启动任务中获取siteroot路径而不是approot?

ios - 如何从 RAM 内存中清除图像

ios - UICollectionViewCells 中 UIStackView 的性能不佳