Unfortunately there is not a straight forward way for the iOS application with App extension in Azure. But to make it work you'll have to do a couple of changes in the project that I'll share later.
As per my recent experience to create the pipeline for such sort of application, the given xcode task from Azure is not capable to handle this case.
And I have later confirmed this from the PG team by reaching out to Azure DevOps support.