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.
• 1 min read
Error
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/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}")"
withsource="$(readlink -f "${source}")"
- Build or Archive your project
The full path of the file is:
[APPNAME]/Pods/Target Support Files/Pods-[APPNAME]/Pods-[APPNAME]-frameworks.sh
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