# Can't Remote Build for iOS

**URL:** <https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757>\
**Category:** Mobile\
**Tags:** unreal-engine, crash, UE4, question\
**Created:** [October 28, 2016, 6:10pm UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757 "2016-10-28T18:10:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2e621e44](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2e621e44](https://forums.unrealengine.com/u/anonymous_user_2e621e44)\
**Post date:** [October 28, 2016, 6:10pm UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/1 "2016-10-28T18:10:26Z")

</div>

Hi,

I try to remote build for iOS package.

I’m in trouble. Please help me.

Warning is given in “Permissions”, and a package fails.

(UnrealBuildTool: Permissions 0660 for ‘/cygdrive/C/Users/MJ/AppData/Roaming/Unreal Engine/UnrealBuildTool/SSHKeys/MJ-no-Mac.local/MJ/RemoteToolChainPrivate.key’ are too open.)

I attach an image of the error log.

(UE4 version 4.13.2)

 ![112861-permissiton.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/c/e4c93d8369588e831befd7795542a19119044f31.png)

Could you give me some advice?

---

<div class="post-metadata">

**Author:** ![i-design](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@i-design](https://forums.unrealengine.com/u/i-design)\
**Post date:** [October 29, 2016, 3:34pm UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/2 "2016-10-29T15:34:15Z")

</div>

Hi, I had this problem.

What you need to do is navigate to the RemoteToolChainPrivate.key file in windows explorer \> right click \> properties\> security (tab) \> edit (button) \> Add the ‘Users’ group and assign ‘Full Control’.

IMPORTANT - Remove all other users and groups assigned to this file, leaving only the ‘Users’ group with full control.

Try packaging again. This worked for me, and got me past this error. Unfortunately I have hit a little Rsync error now, that I am trying to over come, but hopefully you might not have the same problem.

Good luck, hope this helps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2e621e44](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2e621e44](https://forums.unrealengine.com/u/anonymous_user_2e621e44)\
**Post date:** [October 30, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/3 "2016-10-30T17:29:52Z")

</div>

Thank you for your reply。

Based on the information I receive from you, but I change the permission, it did not go well.

Permission number of will change(660, 555 …) , but, it will also cause the error.

I wonder if there are people who are really successful someone?

Or probably just my environment is not good environment?

I will try to a little more research.

---

<div class="post-metadata">

**Author:** ![byteparrot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@byteparrot](https://forums.unrealengine.com/u/byteparrot)\
**Post date:** [October 30, 2016, 8:55pm UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/4 "2016-10-30T20:55:44Z")

</div>

hey i had the same error

I changed the permission of the .key file to read & write on Administrators, System and my own user.  
I also deleted the folders: Saved, .xcworkspace & Intermediate from my project folder.

At least this fixed the issue of the permissions. However, I still have an rsync error

- dup() in/out/err failed
- UATHelper: Packaging (iOS): UnrealBuildTool: rsync: connection unexpectedly closed (0 bytes received so far) [sender]

Did this help you, do you now experience the same issue as I am?

-Joey

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [October 31, 2016, 9:35pm UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/5 "2016-10-31T21:35:06Z")

</div>

You will have to search “MacWarning: Unprotected Private Key File” and apply solution to your project file. If you get past this error and experience a new rsync error, please start a new post.

---

<div class="post-metadata">

**Author:** ![Dana\_McDuder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dana\_McDuder](https://forums.unrealengine.com/u/Dana_McDuder)\
**Post date:** [April 28, 2017, 1:50am UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/6 "2017-04-28T01:50:29Z")

</div>

This method worked great!

---

<div class="post-metadata">

**Author:** ![Al\_Ananias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Al\_Ananias](https://forums.unrealengine.com/u/Al_Ananias)\
**Post date:** [July 16, 2017, 9:47am UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/7 "2017-07-16T09:47:01Z")

</div>

Unfortunately this didn’t work for me. I changed the permissions in the file but the problem persists unchanged.

Am I going mad in thinking that this is something that should be simple/sorted by the engine rather than having us having to learn uber detailed file access security configurations? This whole remote building model is a absolute nightmare… I have the feeling it is not just me around having headaches because of that, am I right?

Any help will be much appreciated folks. Thanks.

---

<div class="post-metadata">

**Author:** ![Bluemak](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bluemak](https://forums.unrealengine.com/u/Bluemak)\
**Post date:** [September 17, 2017, 10:05am UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/8 "2017-09-17T10:05:47Z")

</div>

Same problems as others, this did not work for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1cbc21f5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1cbc21f5](https://forums.unrealengine.com/u/anonymous_user_1cbc21f5)\
**Post date:** [December 13, 2017, 11:34am UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/9 "2017-12-13T11:34:27Z")

</div>

The is how I solved the problem, I’ve already posted an answer in another post, I hope it helps you if you are having the same issues:

> **[Chmodding RemoteToolChainPrivate.key for iOS remote builds](https://forums.unrealengine.com/questions/715773/chmodding-remotetoolchainprivatekey-for-ios-remote.html)**
>
> I am encountering an error when trying to use the iOS remote build feature. I believe I have everything setup correctly EXCEPT the permissions on the private key that Unreal generated. Here is the error: @ WARNING: UNPROTECTED PRIVATE KEY...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_eed7b587](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_eed7b587](https://forums.unrealengine.com/u/anonymous_user_eed7b587)\
**Post date:** [January 7, 2018, 1:41pm UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/10 "2018-01-07T13:41:49Z")

</div>

Try this:

1. [Project Settings \> iOS \> Build] Generate SSH Key and follow instructions for creating the key for the user name and server name you’re using.
2. [Windows File Explorer] Copy the generated .key file from the default save location (e.g. C:\Users\User\AppData\Roaming/Unreal Engine/UnrealBuildTool/SSHKeys///RemoteToolChainPrivate.key
3. [Windows File Explorer] Paste the .key file in a local and not shared directory (e.g. C:/RemoteToolChainPrivate.key)
4. [Project Settings \> iOS \> Build] Use the Override existing SSH permissions and set the .key to the new location (e.g. C:/Remote…)
5. If errors of denied access occur, make sure that the owner of the directory on the Mac rsync can’t access is the user you’re using

It’s an annoying problem, so please update how it goes and if you have additional problems with it.

Hope it helps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_56d22a2a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_56d22a2a1](https://forums.unrealengine.com/u/anonymous_user_56d22a2a1)\
**Post date:** [June 16, 2019, 7:22am UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/11 "2019-06-16T07:22:48Z")

</div>

Hey Joey.

Did you ever get past the rsync error? I’m getting exactly the same thing in UE4.21

---

<div class="post-metadata">

**Author:** ![ali.quaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ali.quaker](https://forums.unrealengine.com/u/ali.quaker)\
**Post date:** [January 10, 2023, 11:56am UTC](https://forums.unrealengine.com/t/cant-remote-build-for-ios/374757/12 "2023-01-10T11:56:37Z")

</div>

This solution works for me… But this is so strange…  
By making the key more un-secure the ssh stops complaining about the key being insecure?
