带电容器的离子4:xcodebuild因手动签名过程而失败

时间:2019-11-21 12:30:20

标签: 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 **

我一直在寻找很多东西,但是没有运气。有任何线索吗?

2 个答案:

答案 0 :(得分:1)

一些解决方法可以解决此问题。我在Github中发现了this问题,这是由于cocoapods更新引起的类似错误。我觉得它有点hacky,但是可以用。我不确定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进行签名,并且不再显示错误并构建了应用。

答案 1 :(得分:0)

如果您的 Xcode 版本为11.0或更高版本,请遵循以下步骤。

1。导航到应用程序。

2。选择“ 签名和功能”。

3。单击“ 启用开发签名

信用:Jacksonsox

enter image description here