Reply to Command PhaseScriptExecution failed with a nonzero exit code Try "flutter upgrade" If the build works well on Android, it could be a problem with xcode configuration. It's not the code. Developer Tools & Services Xcode Apr ’22