DEV Community

Curtly Critchlow
Curtly Critchlow

Posted on • Updated on

How to Fix Failed Archive on Xcode 14.3 (rsync error: some files could not be transferred (code 23))

Introduction

Have you updated Xcode to 14.3 and now your archive fails? If yes, you are reading the correct article. I'll share with you how I fixed failed Archive on Xcode 14.3.

The solution

When the archive failed you might have see the rsync error below.

...
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
Enter fullscreen mode Exit fullscreen mode

Fortunately the fix is very simple, Open the file Pods/Targets Support Files/Pods-Runner/Pods-Runner-framework

Pod-Runner-framework location

Replace:

  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink "${source}")"
  fi
Enter fullscreen mode Exit fullscreen mode

with:

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

The -f was added.

Your archive will now complete successfully.

Connect with me

Thank you for reading my post. Feel free to subscribe below or connect with me on LinkedIn and Twitter. You can also buy me a book to show your support.

Top comments (4)

Collapse
 
shuvo1997 profile image
Shovon Karmker

Saved my day Again. Thank you so much

Collapse
 
curtlycritchlow profile image
Curtly Critchlow

I so happy, this helped you.

Collapse
 
tom_cervenka_cf69fcbb88fa profile image
Tom Cervenka

Thanks so much, Curtly. You probably saved me several days of detective work. I already spent a couple hours before I found your answer. How ever did you figure this out from the error message?

Collapse
 
curtlycritchlow profile image
Curtly Critchlow

You're welcome Tom. I found the solution after searching the length and breath of the internet.