skip to Main Content

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?

2

Answers


  1. 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
    
    Login or Signup to reply.
  2. From the Apple Developer Forums

    Workaround is to update all the generated …-frameworks.sh files to add the -f flag to the call to readlink. In other words, need to replace:

    source="$(readlink "${source}")"
    

    with

    source="$(readlink -f "${source}")"
    

    Seems this is CocoaPods issue…

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search