rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots

rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9] Command PhaseScriptExecution failed with a nonzero exit code

After update Xcode to 14.3,I can not archive my project,it always the bug as above,please help check, thank you very much.

Post not yet marked as solved Up vote post of joey_yang Down vote post of joey_yang
34k views
Add a Comment

Replies

same issue here, was fine last week, now new xcode version and cant create new version of app...

  • some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/97f6331a-ba75-11ed-a4bc-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c

    Still getting same issue in new version

Add a Comment

+1

It works using XCode 14.2!!!

FYI is a cocoapods issue: https://developer.apple.com/forums/thread/727525 and https://github.com/CocoaPods/CocoaPods/pull/11828#issuecomment-1497329930

Updating to Cocoapods v1.12.1 resolved this for me.

  • Updating to Cocoapods v1.12.1 worked for me too

  • Updating Cocoapods to v1.12.1 worked for me

  • I confirm that updating cocoapods worked for me too. Thanks. Must add an "update cocoapods" step as part of the standard upgrade routine.

Add a Comment

Same issue, Urgent!!! My Xcode is 14.3.1, fail to package my new APP and release.

Same issue with XCode 14.3.1 and Cocoapods 1.12.2

  • Same issue. XCode 14.3.1 and Pods 1.12.1. Just updated pods using brew (brew upgrade Cocoapods).Tried Product -> Clean build folder. Archive still has issue with rsync.

    rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/UUID/Library/Caches/.... Command PhaseScriptExecution failed with a nonzero exit code

    Maybe I'll try blowing away everything under Caches.

  • Have you tried deleting the DerivedData folder for Xcode? The issue disappeared after I do this and rebuild with Xcode 14.3.1 and Cocoapods 1.12.1.

Add a Comment

(Continued) The fact that there's no directory called /AppleInternal (off of root) may be an issue.

Upgrading to 1.12.1 Cocoapods version works for me. After upgrading I did

pod deintegrate
pod d clean -df
pod cache clean --all

Xcode 14.3.1

  • I can confirm this solution worked for me 🤪

Add a Comment

Find solution in CocoaPods repo's issues: https://github.com/CocoaPods/CocoaPods/issues/12073

In Build Settings, make sure ENABLE_USER_SCRIPT_SANDBOXING is set to NO.

It's worked for me.