iosxcodexcode7cocoapods

XCode "An error occurred during upload, rsync: failed"


The last archives I've made turn out into this error this error

Logs show this information (app name and route omitted on this log)

    2016-06-28 08:53:48 +0000 [MT] Upload failed for archive App with issues:
(
    "<IDEDistributionIssue: severity(error), error(Error Domain=ITunesSoftwareServiceErrorDomain Code=-19066 \"The path '/route/App.ipa' does not contain a file.\" UserInfo={NSLocalizedDescription=The path '/route/App.ipa' does not contain a file., NSLocalizedFailureReason=Unable to validate your application.})>"
)

This is where the error occurs according to the log. It happens at a random framework each time

rsync: recv_generator: mkdir "/var/folders/ls/hdnz28rx7bb4929q6z4m37gc0000gn/T/XcodeDistPipeline.nwz/GaugeKit.framework/GaugeKit.bundle" failed: Result too large (34)
*** Skipping everything below this failed directory ***
2016-06-28 09:06:14 +0000  GaugeKit.framework/_CodeSignature/
2016-06-28 09:06:14 +0000  
sent 286 bytes  received 38 bytes  648.00 bytes/sec
total size is 388.45K  speedup is 1227.70
2016-06-28 09:06:14 +0000  rsync error: some files could not be transferred (code 23) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-47/rsync/main.c(992) [sender=2.6.9]
2016-06-28 09:06:14 +0000  /usr/bin/rsync exited with 23

It happens when I try to upload to App Store, if I archive for Ad Hoc it doesn't happen and it always happens when it's processing symbols for pods (but not on same pod, just a random pod each time). I'm using Cocoapods 1.0.1 and frameworks (use_frameworks!) and only if I archive with app symbols. Bitcode is deactivated as some pods don't support it.

Any hints about this error? It keeps happening on two different apps with different pods.

EDIT: just to clarify, this error happens while generating the ipa file, for AppStore submission. Both Apps are now published. This error happens randomly while processing symbols (step before code signing) for frameworks (pods) generated and it doesn't happen the same on the same library, it's just random, and while keeping trying I can manage to upload to the AppStore, but I'd like to know how to prevent the head banging with this error.


Solution

  • I was getting this error sporadically. When you uncheck the "Include symbols" checkbox it does fix it.

    But if you're like me and want the symbols to be sent to Apple, I found another strange fix: Unplug your phone from the Mac when submitting the archive to Apple.

    Strange.