11

How can I diagnose this error Command /bin/sh failed with exit code 23

sent 130971 bytes  received 42 bytes  262026.00 bytes/sec
total size is 130816  speedup is 1.00
rsync -auv "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" "/Users/jinteki/Library/Developer/Xcode/DerivedData/MyApp-xyz/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks"
building file list ... rsync: link_stat "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" failed: No such file or directory (2)
done

sent 29 bytes  received 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
Command /bin/sh failed with exit code 23
1

3 Answers 3

29

I had this same issues and I cleaned the Build Folder via:

Product -> hold ALT pressed -> Clean Build Folder

2
  • 1
    Thank you!! But why is this error showing up in the first place? Mine was saying: xcode rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9] Command /bin/sh failed with exit code 23 Sep 21, 2015 at 22:06
  • 1
    Looks like something is going wrong with rsync, usually the error 23 is thrown when there's no space left in the destination. Don't know why is happening here. Thank you anyway, it worked for me too. Sep 28, 2015 at 23:53
4

Removing derived data works too Xcode -> Preferences -> Locations -> tap on the derived data arrow -> Drag the derived data folder to trash

0

I had the same and nothing helped. I deleted the Pods folder from my project and ran pod install again. It worked…

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.