There are several ways to solve this problem.
The first of these is the export of the developer certificate, including the key associated with it, and its import to the client machine.
Another way: (If your client machine uses a different Apple dev account), follow the steps below Certify and provide Apple
I would recommend removing old certificates from xcode, sometimes xcode may lag otherwise
source share