I keep facing Command PhaseScriptExecution failed with a nonzero exit code
error from 2 days before.
<code>/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
</code>
<code>/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
</code>
/bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
I guess this build phase throws error in Run Script.
But I double-check that I have this file in this route.
And I’ve done all.. Clean Project Folder, pod deintegrate.
And I also check that frameworks.sh
file is already set with ‘-f’.
Pods-[your-project-name]-frameworks.sh (…-frameworks.sh)
and edit this section:
<code> if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink "${source}")"
fi
</code>
<code> if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink "${source}")"
fi
</code>
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink "${source}")"
fi
to
<code> if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink -f "${source}")"
</code>
<code> if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink -f "${source}")"
</code>
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink -f "${source}")"
Please help me..
I’ve struggled with this problem for a couple of days.
Xcode version: 15.4
Flutter version: Flutter 3.22.2 • channel stable