Problems with certificates and signatures

I have had constant problems trying to use the Ionic Package to build my application for IOS.

I have everything set up in my app account, the distribution certificate and the mobileprovsion profile are all there.
When I try to build my app through the Package:
Ionic package build ios --release --prod --profile=beta

Sometimes the build occurs normally, other times the build removes a “No valid iOS Distribution signing identities belonging to team 65TKY7L98T were found.” Error.

I try then a few more times, the build fails and suddenly it works again and I have a successful build.

This all without making any changes to the app code, just forwarding the command to the Ionic Package.

What could be happening? Does the build need a time between one request and another for success? (Sometimes I build builds in the Ionic package).