Push Notifications Ionic/Angular & Capacitor

I'm building an ionic app with angular and implemented the push notifications with Capacitor and Firebase. The moment I ran the app on Xcode with an iphone simulator everything went well, the message came up asking if I want to receive notifications, when i ace Then i try to move it to my iphone, I got this error

Command PhaseScriptExecution failed with a nonzero exit code.

To solve this problem i go to

Xcode -> File -> Workspace Setting -> change Build System to Legacy Build System.

and fixed, but now i get another one.

Command /bin/sh failed with exit code 1.

I did the search but I can't find the resolution. Someone can help me?
Push Notifications Ionic/Angular & Capacitor
 
 
Q