'flutter Xcode error Command PhaseScriptExecution failed with a nonzero exit code

After I integrated the flutter project into the iOS project, I have to 'clean' it with Xcode every time I run the iOS project, otherwise it will report an error. Error content: Command PhaseScriptExecution failed with a nonzero exit code



Solution 1:[1]

you have to apply or set a minimum deployment target in Xcode or in your project. Xcode will show you a recommended update while building the project just click on it and apply to perform changes and it will automatically change in necessary files

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 Mayur Devmurari