# Remote-packaging for iOS fails on Windows 10 \[including proposed fix\]

**URL:** <https://forums.unrealengine.com/t/remote-packaging-for-ios-fails-on-windows-10-including-proposed-fix/332832>\
**Category:** Mobile\
**Tags:** windows-10, unreal-engine, iOS, CPP, question\
**Created:** [September 20, 2015, 11:27am UTC](https://forums.unrealengine.com/t/remote-packaging-for-ios-fails-on-windows-10-including-proposed-fix/332832 "2015-09-20T11:27:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonardoBarbero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeonardoBarbero](https://forums.unrealengine.com/u/LeonardoBarbero)\
**Post date:** [September 20, 2015, 11:27am UTC](https://forums.unrealengine.com/t/remote-packaging-for-ios-fails-on-windows-10-including-proposed-fix/332832/1 "2015-09-20T11:27:05Z")

</div>

I’m on UE 4.9.1 and have followed this guide:

[[Windows -\> iOS Rsync/Remote Build Guide (4.8) - Mobile - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?78804-Windows-gt-iOS-Rsync-Remote-Build-Guide-(4-8))][1]

You can read in my post on that thread that I had a problem with file permissions on the Windows 10 PC, but there are also problems with file permissions on the Mac that require modifying the UE code. Some of the files that are created on the PC and then copied to the Mac for building and packaging are, for some unknown reason, created with no permissions at all on the Mac. No one can read, write, or execute them. This makes the packaging process fail on the Mac. The fix I have found is to force the files to be copied with full permissions:

Engine\Source\Programs\UnrealBuildTool\ToolChain\RemoteToolChain.cs

In function:  
static public bool UploadFile(string LocalPath, string RemotePath)

Replace:

```
			// make simple rsync commandline to send a file
			RsyncProcess.StartInfo.FileName = ResolvedRSyncExe;
			RsyncProcess.StartInfo.Arguments = string.Format(
                "-zae \"{0}\" --rsync-path=\"mkdir -p {1} && rsync\" '{2}' {3}@{4}:'{1}/{5}'",
				ResolvedRsyncAuthentication,
				RemoteDir,
				ConvertPathToCygwin(LocalPath),
				RSyncUsername,
				RemoteServerName,
				RemoteFilename
				);

```

with:

```
			// make simple rsync commandline to send a file
			RsyncProcess.StartInfo.FileName = ResolvedRSyncExe;
			RsyncProcess.StartInfo.Arguments = string.Format(
                "-zae \"{0}\" --rsync-path=\"mkdir -p {1} && rsync\" --chmod=+rwx -p '{2}' {3}@{4}:'{1}/{5}'",
				ResolvedRsyncAuthentication,
				RemoteDir,
				ConvertPathToCygwin(LocalPath),
				RSyncUsername,
				RemoteServerName,
				RemoteFilename
				);

```

\Engine\Source\Programs\IOS\iPhonePackager\SSHCommandHelper.cs

In function:  
static public Hashtable UploadFile(string RemoteMac, string LocalPath, string RemotePath)

Replace:

```
			// make simple rsync commandline to send a file
			RsyncProcess.StartInfo.FileName = RSyncExePath;
			RsyncProcess.StartInfo.Arguments = string.Format(
                "-zae \"ssh {0}\" --rsync-path=\"mkdir -p {1} && rsync\" '{2}' {3}@{4}:'{1}/{5}'",
				SSHAuthentication,
				RemoteDir,
				ConvertPathToCygwin(LocalPath),
				SSHUser,
				RemoteMac,
				RemoteFilename
				);

```

with:

```
			// make simple rsync commandline to send a file
			RsyncProcess.StartInfo.FileName = RSyncExePath;
			RsyncProcess.StartInfo.Arguments = string.Format(
                "-zae \"ssh {0}\" --rsync-path=\"mkdir -p {1} && rsync\" --chmod=+rwx -p '{2}' {3}@{4}:'{1}/{5}'",
				SSHAuthentication,
				RemoteDir,
				ConvertPathToCygwin(LocalPath),
				SSHUser,
				RemoteMac,
				RemoteFilename
				);

```

After applying those changes the process runs perfectly, and I don’t think that any problems could arise from them.

[Windows -\> iOS Rsync/Remote Build Guide (4.8) - Mobile - Epic Developer Community Forums](https://forums.unrealengine.com/showthread.php?78804-Windows-gt-iOS-Rsync-Remote-Build-Guide-(4-8))

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 23, 2015, 5:16pm UTC](https://forums.unrealengine.com/t/remote-packaging-for-ios-fails-on-windows-10-including-proposed-fix/332832/2 "2015-09-23T17:16:44Z")

</div>

Hey Leonardo,

Thank you for providing us all of this information. We are investigating this issue and your fix further, a will be entered once it’s completely verified. If you have any further questions, please feel free to reply back.

Thank you!

---

<div class="post-metadata">

**Author:** ![OptimisticMonkey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/optimisticmonkey/32/906571_2.png) [@OptimisticMonkey](https://forums.unrealengine.com/u/OptimisticMonkey)\
**Post date:** [September 25, 2015, 4:47am UTC](https://forums.unrealengine.com/t/remote-packaging-for-ios-fails-on-windows-10-including-proposed-fix/332832/3 "2015-09-25T04:47:41Z")

</div>

FYI - I experienced the same error - these steps seem to resolve that issue. My final problem with reomte build involves a code sign issue I am still troubleshooting

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [September 25, 2015, 4:18pm UTC](https://forums.unrealengine.com/t/remote-packaging-for-ios-fails-on-windows-10-including-proposed-fix/332832/4 "2015-09-25T16:18:07Z")

</div>

Thank you for providing us with this information. I have submitted a report referencing this AnswerHub post: UE-21409. Once additional information is received, we’ll update this post.

Thanks!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a08c0bf2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a08c0bf2](https://forums.unrealengine.com/u/anonymous_user_a08c0bf2)\
**Post date:** [November 19, 2015, 6:55pm UTC](https://forums.unrealengine.com/t/remote-packaging-for-ios-fails-on-windows-10-including-proposed-fix/332832/5 "2015-11-19T18:55:31Z")

</div>

This issue has been fixed in 4.10!
