top of page

[Flutter/dart] Command PhaseScriptExecution failed with a nonzero exit code


Phenomenon


Developing a Flutter project on Mac. After updating Flutter to 2.5.1, I get a title error in Xcode and can't build.



Cause and solution


The version of flutter_redux was old.

Looking back at the error log with Xcode, the following error seems to be the direct cause.


Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.


This error seems to be due to inheritFromWidgetOfExactType being deprecated in the latest version (ref).

Going back further in the log, it seems that version 0.5.4 of flutter_redux occurred.


So update flutter_redux to the latest 0.8.2.


・・・However, a similar error occurred again. It seems that the package cache is left.


Therefore, delete the cache once.


First, delete the following folders

(* The path depends on the location where flutter is installed)

rm -r /Applications/flutter/.pub-cache/hosted

Then install packages again.

flutter clean
flutter pub get
pod install

I built it again, I was able to build successfully.


Recent Posts

See All

Comments


Let's do our best with our partner:​ ChatReminder

iphone6.5p2.png

It is an application that achieves goals in a chat format with partners.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png

Let's do our best with our partner:​ ChatReminder

納品:iPhone6.5①.png

It is an application that achieves goals in a chat format with partners.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png

Theme diary: Decide the theme and record for each genre

It is a diary application that allows you to post and record with themes and sub-themes for each genre.

google-play-badge.png
Download_on_the_App_Store_Badge_JP_RGB_blk_100317.png
bottom of page