简体   繁体   中英

Flutter simulator error: Command PhaseScriptExecution failed with a nonzero exit code

I have created a new flutter project on Android studio. When I try to run it on emulator it gives this error:

PhaseScriptExecution failed with a nonzero exit code

When I check the "For install builds only" checkbox in the Target>Build Phases>Run Scripts or when I exclude arm64 architecture, it gives another error

'Flutter/Flutter.h' file not found

I have tried deleting and recreating the ios directory, but no luck.

Flutter doctor and everything works completely fine

Please help me

Thanks in advance

SOLVED! Flutter version on my mac was higher than the flutter version where I coded the application on… So I just downgraded my flutter to the version I coded on And tada Error resolved Make sure you are on the same version of flutter as the laptop you coded on In my case I coded it on old version of flutter on my windows laptop and tired to run on latest version of flutter so the error popped up.If this is not your case then go through the below link - error: 'Flutter/Flutter.h' file not found when flutter run on iOS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM