Hi,
Thanks for the response!
I had used the link you shared for making the p12 file in earlier build, which used to fail.
Then I followed the instruction in this link.
And exported the distribution certificate from Keychain Access → Certificates filter.
Instead of creating p12 from private key in Keychain Access → Keys as suggested in this guide
And I was able to successfully build the application.
Thanks,
Chitra