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

Wait for release of Cocoapods version 1.12.1

Option 2

To solve it:

  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 bash source="$(readlink "${source}")" with bash 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.

Thank you for reading

What are you thoughts about this? Tweet me @franceleonidev and share your opinion.

Source link