Framework not found FBLPromises when I try to archive the App

I am trying to create the archive for my app but I receive this error:

ld: framework not found FBLPromises

If I try to emulate the app on my iPhone it works correctly.

I am using Ionic + Vue + Capacitor on M1 MacBook Pro.