0

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

akshaya M
  • 11
  • 1

1 Answers1

1

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

akshaya M
  • 11
  • 1