Rsync error when packaging for iOS

I’ve been having this error since a while, and no matter what i do, i just cannot seem to fix it.
i’m ALWAYS Getting this error:

UATHelper: Packaging (iOS): rsync
error: error in rsync protocol data
stream (code 12) at
/home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632)
[sender=3.0.4]

here’s the error in the log:

UATHelper: Packaging (iOS):     rsync error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632) [sender=3.0.4]
PackagingResults: Error: error in rsync protocol data stream (code 12) at /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/io.c(632) [sender=3.0.4]
UATHelper: Packaging (iOS):   ERROR: Error while running Rsync (exit code 12)
UATHelper: Packaging (iOS):          (see C:\Users\nicho\AppData\Roaming\Unreal Engine\AutomationTool\Logs\F+Program+Files+(x64)+Epic+Games+UE_4.21\UBT-ancalagon-IOS-Development.txt for full exception trace)
PackagingResults: Error: Error while running Rsync (exit code 12)
UATHelper: Packaging (iOS): Took 2.0194507s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: Packaging (iOS): ERROR: UnrealBuildTool failed. See log for more details. (C:\Users\nicho\AppData\Roaming\Unreal Engine\AutomationTool\Logs\F+Program+Files+(x64)+Epic+Games+UE_4.21\UBT-ancalagon-IOS-Development.txt)
UATHelper: Packaging (iOS):        (see C:\Users\nicho\AppData\Roaming\Unreal Engine\AutomationTool\Logs\F+Program+Files+(x64)+Epic+Games+UE_4.21\Log.txt for full exception trace)
PackagingResults: Error: UnrealBuildTool failed. See log for more details. (C:\Users\nicho\AppData\Roaming\Unreal Engine\AutomationTool\Logs\F+Program+Files+(x64)+Epic+Games+UE_4.21\UBT-ancalagon-IOS-Development.txt)
UATHelper: Packaging (iOS): AutomationTool exiting with ExitCode=5 (5)
UATHelper: Packaging (iOS): BUILD FAILED
PackagingResults: Error: Unknown Error

Is anybody else able to package to iOS? cause it’s definitely not working for me.

I have that same issue on 4.22

In the log I am seeing
RemoteMac.RsyncOutput: ssh: Could not resolve hostname “mac name”: no address with associated name

Rsync does not understand empty spaces in the path.
So if the user name or the mac name contains a space like for Woji in “mac name”, it fails.

Big thanks to romfeo mentioning, that using the IP is a possible alternative. Well… at least for the mac’s name.

For me, using the IP of my mac rather than the hostname, solved the problem

did you fix this could not resolve hostname problem?