CI/CD pipeline for iOS

I want to create CI/CD pipeline in azure without app flow. Is it possible?
I’m stuck into a code signing error despite being given distribution certificates and passwords.

2022-07-21T17:46:11.4111640Z [13:46:11]: iTunes Transporter output above ^
2022-07-21T17:46:11.4113700Z [13:46:11]: ERROR ITMS-90161: “Invalid Provisioning Profile. The provisioning profile included in the bundle com.mycompany.apapp [Payload/App.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.”
2022-07-21T17:46:11.4117090Z Return status of iTunes Transporter was 1: ERROR ITMS-90161: “Invalid Provisioning Profile. The provisioning profile included in the bundle com.mycompany.apapp [Payload/App.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal.”
2022-07-21T17:46:11.4119600Z The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.

I set all release configurations in xcode. I set profiles in secure files and set passwords in variables.
I set my pipeline on the self-hosted agent.

You need to create a new one with code-signing certificate.

@Hills90210 I already did that. There is something in azure hosted mac agent. After running the pipeline, I checked XCode build setting from the agent _work folder in which I found the signing certificate not set but the mobile provision properly set.
The problem is where I’m wrong. Because i did not get proper documentation about the iOS pipeline using classic mode.