'Command PhaseScriptExecution failed with a nonzero exit code in xcode when i run flutter project

I have a flutter project on mac, when I run it in xcode i have this error and I am not used mac before and I want to fix this issue, I check for flutter path and try to run flutter project on web and it is work without any problem, but when I run the project on IOS simulator I get this problem, How can I fix this issue, what should I do ? enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source