Ionic iOS Automatic Code Signing Error: Provisioning profile is Xcode managed, signing settings require a manually managed profile

Hi @josh-strickland-4c,

sorry for the inconveniences.

Could you please try to run your workflow on your local machine: How to experiment with Bitrise configs locally, on your Mac/Linux ?

I think the problem is that, when you open your generated .xcodeproj file its codesign settings are set to Xcode managed signing, Xcode generates a managed profile for your project, which you can use to export an ipa in your local Xcode.

However on Bitrise, we use the ionic-cli tool to archive your project. During the ionic-cli’s build process, it uses the generated codesign config file (generated by the generate-cordova-build-configuration) to override your project’s codesign settings, with the one specified by the file.
This way the cordova-cli turns off your project’s automatic codesigning and forces the defined settings as a Manual codesign settings.

The problem is that codesigndoc works with the generated local xcode project, which uses Xcode managed signing by default. So the codesign files uploaded by codesigndoc are for Xcode managed signing, but during the ionic archive the project’s codesign settings are overriding.

I would recommand to setup your local project with manual codesign setting (turn off the Xcode managed codesigning) and run codesigndoc again. In this turn codesigndoc will collect your manual codesign files and upload them. Update the generate-cordova-build-configuration, with the new manual provisioning profile and run a new build.