Migration from Xcode 13 to 14, code sign issue at azure pipeline-

I am migrating my project from Xcode 13 to Xcode 14.3.1. My project has five subproject that contains few command line toll and dylibs. I have a custom build script that runs on VSO pipeline. Pipeline failing on 'building submodules and build App' stage.

This is my build script snapshot-

Pipeline only build my application successfully when I am passing 'CODE-SIGN-REQUIRED' ='NO' But I need a signed build for further action. Please help me how can I get a signed build. Note - Using same certificate I am able to build, run and archive app in my Xcode.

Migration from Xcode 13 to 14, code sign issue at azure pipeline-
 
 
Q