Preloader

Complete error

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

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

Command PhaseScriptExecution failed with a nonzero exit code

Problem

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.

Solution

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]-frameworks.sh file
  5. In that file, replace source=”$(readlink “${source}”)” with source=”$(readlink -f “${source}”)”
  6. Build or Archive your projectThe full path of the file is: [APPNAME]/Pods/Target Support Files/Pods-[APPNAME]/Pods-[APPNAME]-frameworks.sh

Hopefully the error now is gone.

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

Leave a Reply

Your email address will not be published.