Flutter - Command PhaseScriptExecution failed with a nonzero exit code [duplicate] Flutter - Command PhaseScriptExecution failed with a nonzero exit code [duplicate] flutter flutter

Flutter - Command PhaseScriptExecution failed with a nonzero exit code [duplicate]


My case was like this, I used websafe_svg 1.1.0 which depends on flutter_svg ^0.17.4. and as suggested by @Lutaaya Huzaifah Idris this issue is fixed in latest update of flutter_svg: ^0.18.0.

So if you using websafe_svg then add below lines to solve this issue in pubspec.yaml,

dependency_overrides:  flutter_svg: ^0.18.0


What I did was to downgrade my flutter_svg package to flutter_svg: ^0.17.4, and the build passed.

I think for the case of flutter, when this error occurs it's most probably an issue on your packages. First run flutter pub get to see if it works, or try flutter clean. If all packages are working well, then your build in IOS will pass.


I've got the same issue, I just downgrade my flutter version works for me.

Get the latest tag version of the flutter from (https://github.com/flutter/flutter), Clickhere to see attached image

go to you flutter directory and run

git checkout v1.16.3

Once completes, go to your VS terminal and run flutter doctor. Let it complete. Restart your VS (editor). You can build it now.