Xcode 16 on Macos sequoia can't upload build: Copy Failed

Xcode 16 on Macos sequoia can't upload build: Copy Failed
xcode
Ethan Jackson

Can't find any solution by googling. Uploading my react-native app build to appstore stops with error: Copy failed

In logs in file IDEDistributionPipeline.log I found this:

2025-04-11 11:29:02 +0000 codesign output: 2025-04-11 11:29:02 +0000 Processing step: IDEDistributionZipODRItemStep 2025-04-11 11:29:02 +0000 Skipping step: IDEDistributionZipODRItemStep because it said so 2025-04-11 11:29:02 +0000 Skipping step: IDEDistributionZipODRItemStep because it said so 2025-04-11 11:29:02 +0000 Processing step: IDEDistributionCreateIPAStep 2025-04-11 11:29:02 +0000 Running /usr/bin/rsync '-8aPhhE' '/var/folders/wc/0cw6m4rj01l51lxrdyv8rthw0000gn/T/XcodeDistPipeline.~~~TyenOE/Symbols' '--link-dest' '/var/folders/wc/0cw6m4rj01l51lxrdyv8rthw0000gn/T/XcodeDistPipeline.~~~TyenOE' '/var/folders/wc/0cw6m4rj01l51lxrdyv8rthw0000gn/T/XcodeDistPipeline.~~~TyenOE/Root' 2025-04-11 11:29:02 +0000 rsync: on remote machine: --extended-attributes: unknown option 2025-04-11 11:29:02 +0000 rsync error: syntax or usage error (code 1) at main.c(1802) [server=3.3.0] 2025-04-11 11:29:02 +0000 rsync(48477): error: unexpected end of file 2025-04-11 11:29:02 +0000 /usr/bin/rsync exited with 1 2025-04-11 11:29:02 +0000 Step "<IDEDistributionCreateIPAStep: 0x60000e4ea560>" failed with error "Error Domain=IDEFoundationErrorDomain Code=1 "Copy failed" UserInfo={NSLocalizedDescription=Copy failed}"

Answer

I found a fix on Hacker News https://news.ycombinator.com/item?id=43609392 [enter link description here][1]

I recently ran into an issue with this because building an iOS .ipa from the command line with xcodebuild apparently ends up shelling out to call rsync to copy some files between local directories, and because I had homebrew rsync earlier in $PATH, it would end up running homebrew rsync, but xcodebuild passed an openrsync-only command line argument "--extended-attributes" that homebrew rsync doesn't understand and would exit with a failure.

I had the same thing, removed rsync from homebrew and uploading ipa was successful.