Command PhaseScriptExecution failed with a nonzero exit code

I have been doing research for 5 days now, I have came across multiple solutions, I have done them in Xcode it works when I build the application for the first time but when I run it again the error reoccurs. Can anyone help me in this issue?

( I'm using Xcode 12)

Command PhaseScriptExecution failed with a nonzero exit code
 
 
Q