Xcode 14.1 - App is stuck on building after I added new certificate and profile

I have a weird issue where app is just stuck on building after I added new distribution certificate and profile. I am trying to find out this issue since two days now but no luck. I have Embedded pods framework in the app and it looks like some code sign issue somewhere, with pods or during any script run. I tried lot of solutions provided online but no luck. Please let me know if someone else also faced the issue . Weird things is, the moment I switch to my development certificate and profile, build runs fine without any issue. I am using Xcode 14.1.

Xcode 14.1 - App is stuck on building after I added new certificate and profile
 
 
Q