Fix “Some files could not be transferred (code 23)“ Error in Xcode

Discover how to fix the 'Some files could not be transferred (code 23)' error connected to Cocoapods.

Francesco Leoni

1 min read


rsync error: some files could not be transferred (code 23)

Complete error

rsync error: some files could not be transferred (code 23) at /AppleInternal/BuildRoot/Library/Caches/

Sources/rsync/rsync-54.120. 1/rsync/main. c (996) [sender=2.6.9]

Command PhaseScriptExecution failed with a nonzero exit code


This error happens because there is an issue with Cocoapods, because Xcode 14.3 is using a relative path in its symlink for frameworks.

This error is usually thrown while Archiving a product and not when Building or Running the app.


To solve it:

Option 1

Update to Cocoapods version 1.12.1

Option 2

  1. In the Navigator sidebar select your Pod project
  2. Then, select the Targets Support Files folder
  3. Then Pods-[APPNAME]
  4. Select the Pods-[APPNAME] file
  5. In that file, replace source="$(readlink "${source}")" with source="$(readlink -f "${source}")"
  6. Build or Archive your project

    The full path of the file is: [APPNAME]/Pods/Target Support Files/Pods-[APPNAME]/Pods-[APPNAME]

Hopefully the error now is gone.

If you have any question about this article, feel free to email me or tweet me @franceleonidev and share your opinion.

Thank you for reading and see you in the next article!

Share this article

Related articles

CloudKit With CoreData Not Working in Production

Discover why sometimes the sync between CoreData and CloudKit do not work in production but it does while developing.

1 min read


How To Take an Xcode Simulator Screenshot without Shadows

See how to take a ready to use screenshot of the Xcode Simulator embedded in the device bezel without any shadow or toolbar.

1 min read


Error “Missing package product“ for Swift Packages (SPM)

See how to fix the “Missing package product“ error in Xcode caused by some Swift Packages added through SPM.

2 min read