Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/120.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 离子4带电容器:xcodebuild手动签名过程失败_Ios_Xcode_Azure_Ionic4_Capacitor - Fatal编程技术网

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

Ios 离子4带电容器:xcodebuild手动签名过程失败,ios,xcode,azure,ionic4,capacitor,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=iP

我正在尝试构建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 **
/usr/bin/xcodebuild-sdk iphoneos-配置发布-工作区/Users/runner/runners/2.160.1/work/1/s/ios/App/App.xcworkspace-方案应用程序构建代码签名样式=手动代码签名标识=iPhone分发:(ENT)配置文件=5254b426-4af0-45e7-aeab-ec63a303d250配置文件指定符=
从命令行生成设置:
CODE\u SIGN\u IDENTITY=iPhone发行版:瑞士移动公司(ENT)
代码\符号\样式=手动
供应配置文件=5254b426-4af0-45e7-aeab-ec63a303d250
设置\u配置文件\u说明符=
SDKROOT=iphoneos13.1
注意:使用新的构建系统
注:规划建造
注意:构建构建描述
错误:电容器不支持配置文件。电容器不支持配置文件,但已手动指定配置文件ent_frontwork。在生成设置编辑器中将配置文件值设置为“自动”。(在项目“Pods”的目标“电容器”中)
错误:CapacitorCordova不支持配置文件。CapacitorCordova不支持资源调配配置文件,但已手动指定资源调配配置文件ent_frontwork。在生成设置编辑器中将配置文件值设置为“自动”。(项目“Pods”中的目标“CapacitorCordova”)
错误:Pods应用程序不支持配置文件。Pods应用程序不支持配置文件,但已手动指定配置文件ent_frontwork。在生成设置编辑器中将配置文件值设置为“自动”。(在项目“Pods”的目标“Pods应用程序”中)
**构建失败**

我找了很多,但运气不好。有什么线索吗?

一点解决方法可以解决这个问题。我在Github中发现了一个问题,原因是cocoapods中的更新导致了类似的错误。我觉得它有点老套,但很管用。我不确定Azure是否应该修复其xcode任务以避免这些错误,但现在,这已经足够好了

因此,修复程序只是将以下代码添加到pod文件中:

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就不必签名,错误也不会再显示,应用程序也会生成。

您的解决方案帮助我解决了从Azure构建管道创建的Ionic5 iOS构建上的相同问题。谢谢分享