Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After upgrading to Xcode 14.3, while trying to archive a Flutter app, I get "Command PhaseScriptExecution failed with a nonzero exit code" [duplicate]

Tags:

xcode

flutter

An existing Flutter project, built and archived many times before.

After upgrading Xcode to 14.3, while trying to archive the project, I get the following error:

Command PhaseScriptExecution failed with a nonzero exit code

Tried to clean, update pods etc. Nothing helps...

Any ideas?

like image 374
user6097845 Avatar asked Jan 25 '26 23:01

user6097845


1 Answers

Just modified the frameworks.sh in my Project adding the "-f" and pressed "Archive" in XCode, so it worked again.

/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh

if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
  fi
like image 98
aXXy Avatar answered Jan 28 '26 13:01

aXXy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!