New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command PhaseScriptExecution failed with a nonzero exit code #49495
Comments
This file is located in the flutter SDK, can you confirm that it exists? If not was it deleted? You will need to restore it (using git) or re-download flutter |
Yes, it exists. |
I added a But I read somewhere that this is not advisable to do, and that it shouldn't be necessary, so the problem persists. I don't know the consequences of adding it but it's a temporary workaround. One possible consequence is that now I got a response from apple with the following message. I wasn't getting this before and I didn't change anything but a few lines of code since the last archive build. I don't even know what that means.
|
Have you run |
Yes, I always run This is the Generated.xcconfig content:
It's pointing to the exact same path. But for some reason it's not working. Any ideas? About the other problem, well it happened now for the first time and all I changed was a few lines of code that shouldn't have this kind of impact. I'm just sharing everything relevant to help finding a solution. |
Are you doing anything with flavors, or Xcode build settings? |
What's the output of:
|
Is that output from the Archive working with your User-defined build setting? If so, can you remove it and try again?
|
Sorry for the late reply. |
Oh boy... Now, after a couple Flutter updates, I can't even run Now I can't archive and publish updates for my app again... Please help. |
Here's the trail that should make that
Then in your build configurations (Runner project > Info > Configurations), those Debug and Release xcconfigs should be the Based on Configuration File. And therefore FLUTTER_ROOT should show up in your project and target build settings. This is how it's all set up when you So what part of the above are you missing? |
This is the content of both
The Runner project > Info > Configurations looks exactly like in the image. The FLUTTER_ROOT only show in the build settings if I add it. |
So I tried a bunch of things like removing and adding back the |
Thank you! |
It works. Thank you. The "Based On Configuration File" is incorrectly set for my project. |
@alanpachuau @SirBertly any idea how that was misconfigured? I've seen lots of people with the problem but don't understand how it happens. It's set up correctly in a new |
In my case, it is occurred for mac out of memory. It fixed after clear mac memory. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I'm having trouble archiving an ios app. It was working fine yesterday, today it stoped working.
I can run the app on the simulator with
flutter run
and I can doflutter build ios
without errors. But when I go to XCode to Archive it, it throws this weird error:Been frying my brains since yesterday and I can't find the problem or a solution online.
Steps to Reproduce
flutter build ios
.Expected results:
No error
Actual results:
/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Logs
The text was updated successfully, but these errors were encountered: