skip to Main Content

I have my flutter app, I am able to build it and run on my iphone but when I try to archive it to upload to test flight i get this errors :

PhaseScriptExecution [CP] Embed Pods Frameworks /Users/alingavriliuc/Library/Developer/Xcode/DerivedData/Runner-cujzpewjolforngnoxyherjuheln/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-AF6B532C04771866E7662848.sh (in target 'Runner' from project 'Runner')
    cd /Users/alingavriliuc/Documents/mdb-flutter-app/frontend/ios
    /bin/sh -c /Users/alingavriliuc/Library/Developer/Xcode/DerivedData/Runner-cujzpewjolforngnoxyherjuheln/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/Runner.build/Script-AF6B532C04771866E7662848.sh

mkdir -p /Users/alingavriliuc/Library/Developer/Xcode/DerivedData/Runner-cujzpewjolforngnoxyherjuheln/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/Runner.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/openssl_grpc.framework" "/Users/alingavriliuc/Library/Developer/Xcode/DerivedData/Runner-cujzpewjolforngnoxyherjuheln/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.app/Frameworks"
building file list ... rsync: link_stat "/Users/alingavriliuc/Documents/mdb-flutter-app/frontend/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/openssl_grpc.framework" failed: No such file or directory (2)
done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code

Showing Recent Issues

rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]

enter image description here

Flutter clean
Pods install –repo-update
Pods deintegrate

2

Answers


  1. Try this solution (it works for me):

    There is an issue with Cocoapods now, because Xcode 14.3 is now using a relative path in its symlink for frameworks.

    Either wait for release of Cocoapods version 1.12.1 or make this simple change in your Pods-Runner-frameworks.sh file

    You can find it on path:
    "iosPodsTarget Support FilesPods-RunnerPods-Runner-frameworks.sh"

    Replace:

    if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
    

    with:

    if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
    

    ** Note that -f was added.

    Then you can archive it and upload your app.

    Login or Signup to reply.
  2. As suggested by Ali Al-Amrad, I upgraded to Cocoapods version 1.12.1 using command:

    sudo gem install cocoapods
    

    Then, I had to reinstall my project pods:

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