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

2
  • Is this for an iOS build? I've only come across this error for iOS builds Commented Nov 15, 2021 at 17:27
  • yes @Amxela it is for iOS build only,Do you know the solution? Commented Nov 15, 2021 at 17:52

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.