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
- In the Navigator sidebar> select your Pod project
- Then, select the Targets Support Files folder
- Then Pods-[APPNAME]
- Select the Pods-[APPNAME]-frameworks.sh file
- In that file, replace source=”$(readlink “${source}”)” with source=”$(readlink -f “${source}”)”
- 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!