PhaseScriptExecution failed with a nonzero exit code
Hi everyone, I am facing issue with deploying my flutter application on iOS only. The application runs fine on android. When I connect my physical iOS device and hit run (play button) I get a message saying build failed and it says Command PhaseScriptExecution failed with a nonzero exit code. I tried the forums and stackoverflow but none of those solutions worked for me. Any help would be appreciated.
I saw that images are not allowed here, so if needed I would not mind sending any images relating to the issue personally (dm)
11 comments · 84% upvoted · other discussions
Does it run on the simulator? I mostly get this when I have a missing semicolon somewhere. Have you checked the issues tab (in Android Studio) ?
Count_Dracula_Jr [OP] 1 points · Apr 2021
Hi thanks for your reply. No, the app doesn’t run in the simulator also. I use VS Code with flutter and in VS Code I did not get any errors. Also, the app installed and ran as expected on an android device