Errors trying to build iOS app from command line: xcodebuild fails with manual signing process

I’m trying to build the iOS version of an Ionic app which uses capacitor in my continuous integration system (Azure).

This is the output I get:

/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 **

I’ve been searching a lot but no luck. :crazy_face:
Please, help!

Hello,

Have you tried to switch to automatic signing?

This is what I did to solve it: https://stackoverflow.com/questions/58975122/ionic-4-with-capacitor-xcodebuild-fails-with-manual-signing-process

1 Like

Hey !
still not working, here is my podfile that I modify by powershell task before xcode build task run :

platform :ios, ‘12.0’
use_frameworks!

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

install! ‘cocoapods’, :disable_input_output_paths => true

def capacitor_pods
pod ‘Capacitor’, :path => ‘…/…/node_modules/@capacitor/ios’
pod ‘CapacitorCordova’, :path => ‘…/…/node_modules/@capacitor/ios’
pod ‘CapacitorApp’, :path => ‘…/…/node_modules/@capacitor/app’
pod ‘CapacitorHaptics’, :path => ‘…/…/node_modules/@capacitor/haptics’
pod ‘CapacitorKeyboard’, :path => ‘…/…/node_modules/@capacitor/keyboard’
pod ‘CapacitorStatusBar’, :path => ‘…/…/node_modules/@capacitor/status-bar’
end

target ‘App’ do
capacitor_pods
end

and here is my xcode build task :

- task: Xcode@5
inputs:
actions: “build”
configuration: “Release”
sdk: “iphoneos”
xcWorkspacePath: “ios/app/app.xcworkspace”
scheme: “App”
packageApp: true
exportPath: “output”
signingOption: “manual”
signingIdentity: ‘$(APPLE_CERTIFICATE_SIGNING_IDENTITY)’
provisioningProfileUuid: ‘$(APPLE_PROV_PROFILE_UUID)’
teamId: ‘${{ parameters.developmentTeamId }}’
publishJUnitResults: true
xcodeVersion: “default”

and still always getting errors like this one :

error: CapacitorCordova does not support provisioning profiles. CapacitorCordova does not support provisioning profiles, but provisioning profile Test_POC.mobileprovision has been manually specified. Set the provisioning profile value to “Automatic” in the build settings editor. (in target ‘CapacitorCordova’ from project ‘Pods’)

if anyone have an idea :frowning: i’m stuck since 2 days trying millions workaround that do not work…
@Pizzicato, did your xcode build task look like mine ?

Ok I found the solution, if it can help :
when you are using like me, azure pipeline.
please do at this order :

  • build ionic
  • cap add ios
  • then NOW update podfile to add specifics lines.
  • cap sync ios

I was modifying podfile after cap sync ios, so that’s why it was not working during xcode build command.

Could you post the powershell task to update the podfile adding the specific lines? Thanks!