Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to setup Remote Build ?

Hey guys i'm trying to test In App-Purchase feature in my IOS game but since i'm using a PC i think i need to setup remote build so i can sync to a MAC so i can use XCODE to build and test the IAP in my game but i don't know how to set up Remote Build i have gone far as to install DeltaCopy, Allow Remote in MAC ect. But got stuck in " Generate SSH Key " i click the button but doesn't do anything.

I read that there's another way for building and testing app, through a website call "Testflight" but the website is currently down.

If i'm wrong please feel free to correct me, i'm not familiar with XCODE.

Product Version: UE 4.12
more ▼

asked Jul 12 '16 at 12:57 AM in Installation & Setup

avatar image

111 9 14 23

avatar image huseyin12343 Jun 19 '18 at 02:20 PM

Hi, FacePalm.exe im trying to package my game in 4.19 on windows and it says i must remote build. I am really having trouble doing this. I have a few questions will it be possible to discuss this over skype or discord.

avatar image FacePalm.exe Jun 20 '18 at 01:12 AM

I've sent you a PM in the forums.

avatar image Ijaz Naeem Ahmad Sep 12 '18 at 03:45 PM

oh dang I was stuck for hours! finally by removing the path to delta copy it finally worked Thanks!!!!! :)

avatar image Gowthaman Dec 08 '18 at 02:13 PM

i cant type in the cmd window while generating ssh key for remote build can you help

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

This is from modifying this guide a tad: https://forums.unrealengine.com/showthread.php?78804-Windows-gt-iOS-Rsync-Remote-Build-Guide-(4-8) (As that's rather outdated and excessive now)


1) Download and install Xcode

2) Export cert and provisioning profiles from Xcode

Add your Apple Dev Account in Xcode (Preferences->Accounts)

Xcode > Apple IDs > Details > Provisioning Profiles > "Show in Finder" > Copy .mobileprovision files to folder on PC (or USB stick)

Xcode > Apple IDs > Details > Signing Identities > "Export" > Input password and export .p12 files to folder on PC (or USB stick)

Open Keychain Access, choose the "My Certificates" category, and copy your certificates from "login" to "System"

3) Go to System Preferences->Sharing and turn on "remote login"

Make sure you give access for the account you plan to use

[Windows PC]

1) Make sure you have the source build of UE4 downloaded and setup correctly

2) Download and install DeltaCopy

I recommend installing this in the default directory of C:/program files/etc. etc.

If you don't you will need to define the location in the project settings under Platforms->iOS->Build->RemoteBuildOptions

4) Setup your project iOS settings

Go to Edit -> Project Settings -> iOS -> and be sure the project is configured for IOS.

Import the Mobile Provision that we exported earlier. This will be automatically copied to a location in your Documents folder.

Import the Certificate (.p12 that we earlier exported from Xcode), input password. This will register the certificate globally on your PC.

Since the editor copies and registers these files, you can now unplug your USB stick or remove the files you exported earlier.

NOTE: If importing through the editor doesn't work, open UE4Directory\Engine\Binaries\DotNET\IOS\IPhonePackager.exe, Find the uproject file for your project, then click the Already Registered tab, and import your certificate through there.

Shut down IPP and restart the editor when done.

Set bundle identifier to com.companyname.yourgame (make sure this matches the string in your mobile provision)

5) In the same tab, find the Remote Build Options (tiny hidden arrow)

Enter the Remote Server Name (Computer name of the Mac)

Enter the RSync User Name (User name of the Mac)

Press the [Generate SSH Key] button (This and the next sub steps are optional here as this will happen when you attempt to build the ipa anyway)

Enter Yes into the terminal

Enter the password of the Mac computer

Press Enter twice to enter an empty passphrase

Enter the password of the Mac computer again

6) Finally, Package Project

You can do this by just hitting Package Project -> iOS, however I prefer using the project launcher with a custom profile (Launch arrow->project launcher)

If everything goes right, you will have an IPA in the Binaries/iOS folder of your Windows project folder.

I think that should be all the steps to setup for remote building. It's been a while since i've had to do it.

Hope that helps. :)

more ▼

answered Jul 12 '16 at 05:49 AM

avatar image

275 14 20 30

avatar image Juanjose09 Jul 12 '16 at 06:11 AM

Hey thank for the reply i will try it first thing in the morning, but i got a question...

Do i really need XCODE to test In-App Purchase on my iphone ?

Also do i need to download Unreal from GitHud and setup the engine, compile ect. all over again ?

avatar image FacePalm.exe Jul 12 '16 at 07:08 AM

If you want to remote build, then you need xcode. Honestly you shouldn't need to compile the engine to test IAP, but an engine bug is an engine bug. If you can't wait for epic to fix it, then you have to fix it yourself.

EDIT: As for needing the github version, If you want to make any modifications to the engine, the source code is REQUIRED. If you're using the Epic Launcher version of the engine, most of the source is not included as you're not supposed to be rebuilding the entirety of the engine. (As it's already done for you)

avatar image gaaooee Jan 05 '19 at 08:30 PM

Facepalm.exe I’ve exhausted my search in this problem I am having and you seem to be the only one confident in this area. I have followed instructions and continue to get ssh: connect to host a1011.local port 22: Connection timed out can you help me? ASAP please and thank you

avatar image fxtentacle Oct 01 '17 at 10:45 AM

Thanks for this excellent summary :)

In my case, everything worked except for the final IPA signing back on the PC, which failed with:

 IPP ERROR: Application exception: System.Security.Cryptography.CryptographicException: The buffer supplied to a function was too small.

To get that last step to work, I had to convert my iOS dev private key to PEM and back to P12 using openssl:

 openssl pkcs12 -in ios-dev.p12 -out ios-dev.pem -nodes
 openssl.exe pkcs12 -export -in ios-dev.pem -out ios-dev-fixed.p12

So aparently, there's some private flags in the P12 from Apply which the Epic signing tool doesn't like, but openssl will happily remove them.

avatar image Antidamage Nov 13 '17 at 03:04 AM
 Xcode > Apple IDs > Details > Provisioning Profiles > "Show in Finder" > Copy .mobileprovision files to folder on PC (or USB stick)

This step appears to be wrong. I can't find Xcode > Apple IDs or anything like Details > Provisioning Profiles under Accounts.

avatar image FacePalm.exe Nov 13 '17 at 03:37 AM

Try looking under Xcode > Preferences > Accounts

From memory Apple moved this in one of the latest XCode versions. Can't confirm this ATM as I don't have the login details for the mac here at work.

Let me know if you figure it out. :)

avatar image Antidamage Nov 13 '17 at 04:03 AM

In that case I think I found it, thank you. I went a little different though due to everything Xcode wanted to export being packaged into some non-p12 format:

  1. Use XCode to generate certificate

  2. Go to developers.apple.com and download cert, make provisioning profile

  3. Load them into UE on the windows side.

And of course make sure all certs in the keychain are trusted and if you made any certs today and you're forward of the US in timezone set your date forward by one day until tomorrow.

Seems to be working. Just doing some test remote builds now, I'll report back if my information is in fact bad. :)

avatar image Antidamage Nov 13 '17 at 11:24 AM

So overall it's still not working for me. I did a source build and it still fails at exactly the same place:

 UATHelper: Packaging (iOS):   Picking the default remote server
 UATHelper: Packaging (iOS):   Doing date +"%s" && sysctl hw.memsize | awk '{print $2}' && sysctl hw.logicalcpu | awk '{print $2}'
 UATHelper: Packaging (iOS):   Execute took 00:00:00.0655628
 UATHelper: Packaging (iOS):   ERROR: Failed to run init commands on Output =
 UATHelper: Packaging (iOS):   ERROR: Failed to initialize a connection to the Remote Server

My instinct is to say that sysctl is a linux command so it has no business being run on windows. I can't even run it in a git bash window, so does UE have some kind of local version of sysctl it can run?

I can SSH in using my keys fine so I'm lost as to why it's failing to connect. This is as far as I got last time I tried too. Any advice?

My other question is why does it need a source build? No instructions I've seen anywhere say to modify anything about it.

avatar image FacePalm.exe Nov 13 '17 at 11:58 PM

You're correct that sysctl is a UNIX command as that command it plans on running ON the remote server NOT what it's trying to run on your machine.

I'm not sure why you can SSH manually into the machine, but not using the remote tools. Try double checking is the actual IP of the server, and ping it as a quick test. If the ping fails, from memory the build tool assumes the server doesn't exist (even if it does) as the build tool uses ping to determine a valid server.

And the reason it needs a source build is you are compiling the binary (and you can't compile if you don't have source code) the remote tool copies the source and the various build resources across, compiles it, signs it, and then copies back the final binary. (i.e. the stub)

I'm not sure if you can get it to package/sign correctly if it doesn't build the binary. I could be wrong, but I never got it to work (This was a while back though)

avatar image Antidamage Nov 14 '17 at 04:32 AM

Ah you mean a "code project". A source build is when you build the entire editor from source with a modified engine.

It can still do all of the normal tasks on the Mac that it'd do on the PC even if it's just blueprint-only, but it will also sign it correctly with an App Store provisioning profile which is what the game needs to be sold. That's the part other than compilation that Windows can't do. (This is for people following in my footsteps after this wondering why we're bothering.)

I'll have a go at pinging it, but the IP is definitely correct and everything's set up for SSH. There could be some router funkiness going on, it is the main common element here.

avatar image FacePalm.exe Nov 14 '17 at 05:05 AM

No, a code project and source are completely different and I mean Source. iOS doesn't support modules (i.e. DLL's) which is how a code project on Windows works. All your code is compiled into a single binary on iOS.

So if your project is Blueprint ONLY, then you can use the iOS binary shipped with the non source build of the engine. Otherwise you will NEED to compile from source if your project contains code.

I'm not sure if they have changed this recently, but as far as I know Epic have stated they do not support remote compiling code projects from windows (I remember seeing it in a forum post/answerhub from a Dev a while back)

As for pinging, like I said above: Epic's build tool relies on the Windows ping command. I vaguely remember this is disabled by default on mac's (I think... I remember having the issue where the build machine was rejecting pings anyway)

avatar image Antidamage Nov 14 '17 at 07:10 AM

Yeah the build targets and binaries delivered differ, but once you add code to a project (or change to a distribution provision) it will need to be compiled in its target environment. That's what remote build is for obviously, to compile on a mac without leaving a windows dev environment.

You can also modify the engine and build your own engine/editor but that requires you to do it on xcode locally, which is what a source build is. I worry that we'll confuse people, because it got me. I compiled the engine from source all the time wondering what the purpose of it was.

Anyway getting back to it, the mac definitely responds to ping and the firewall is off. I've been as permissive as the router will allow. I might have to start a new question specifically for that. Thanks for your help in eliminating a bunch of things and your original instructions! :)

avatar image SoulTripper Mar 13 '18 at 05:38 PM

Delta copy is not working on the latest version of windows 10?

[main] rsync 8992 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer.

avatar image YunalZobu Mar 27 '18 at 08:58 AM

I get the exact same error with it

avatar image SoulTripper Mar 27 '18 at 06:42 PM

I fixed the error by removing the path to the delta copy install. UE4 now ships with deltacopy included so leave the delta copy directory field blank

avatar image krishcrush_ Aug 01 '18 at 08:52 AM

For those of you interesting in the official documentation from unreal : https://docs.unrealengine.com/en-US/Platforms/iOS/Windows

avatar image parramagia Oct 08 '18 at 07:34 AM

someone could help me with this issue of remote build, I'm going crazy trying to configure the rsync and delta copy, plus there is no clear documentation on this subject, what you find is very fragmented, please help me.

avatar image parramagia Oct 08 '18 at 07:38 AM

FacePalm.exe, can you help me

avatar image FacePalm.exe Oct 08 '18 at 07:46 AM

What specific issues are you running into?

Only saying "Halp!" isn't enough information for me to help you out.

avatar image parramagia Oct 08 '18 at 07:49 AM

Could you communicate with me via mail?


avatar image mgawad Nov 30 '18 at 11:19 PM

Anyone else experiencing similar ERROR in remote build with 4.21 ? ERROR: Unable to determine home directory for remote user

avatar image Element808 Jun 08 '19 at 05:41 AM

@Mgawad - Same in 4.22. Remote build worked perfectly for me in 4.20, I upgraded my code project to 4.22 and now I can't build for iOS.

avatar image FacePalm.exe Jun 12 '19 at 01:19 AM

Can you paste the 'SSH output' you're getting after the "Unable to determine home directory for remote user" message? There were some minor directory changes made in:


Which could be causing the issue. I'd need more info to figure out what exactly is going wrong.

avatar image Element808 Jun 20 '19 at 03:18 AM

@Facepalm.exe hey man, I was able to get mine working again. Rebuilt a new virtual environment with the latest OSX version, and latest Xcode. Installed certs, etc...and was up and running again.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I'm getting this same error in 4.22

Followed every possible solution above without any success

 LogPlayLevel:   [Remote] Using remote server 'MBP.local' on port 22 (user 'hax0r-MBP')
 LogPlayLevel:   [Remote] Using private key at C:\Users\hax0r\AppData\Roaming\Unreal Engine\UnrealBuildTool\SSHKeys\MBP.local\hax0r-MBP\RemoteToolChainPrivate.key
 **LogPlayLevel: Error:   ERROR: Unable to determine home directory for remote user. SSH output:
 LogPlayLevel:            Host key verification failed.**
 LogPlayLevel: Took 0.7669667s to run UnrealBuildTool.exe, ExitCode=5
 LogPlayLevel: Error: ERROR: UnrealBuildTool failed. See log for more details. (C:\Users\hax0r\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.22\UBT-FuzzyFuzzyCute-IOS-Development.txt)
 LogPlayLevel:        (see C:\Users\hax0r\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.22\Log.txt for full exception trace)
 LogPlayLevel: AutomationTool exiting with ExitCode=5 (5)

more ▼

answered Jun 20 '19 at 03:00 AM

avatar image

5 2 4

avatar image FacePalm.exe Jun 20 '19 at 03:15 AM

Check out: https://www.thegeekdiary.com/how-to-fix-the-error-host-key-verification-failed/

NOTE: On Windows:


is equivalent to

avatar image spentak Jun 20 '19 at 04:23 AM

I'm fairly certain at this point this is an engine bug. I can remote in just fine from git-bash. It only fails when Unreal AutomationTool attempts the connection. Any other thoughts?

avatar image FacePalm.exe Jun 20 '19 at 04:31 AM

It's quite possible they're doing something funky with the actual SSH connection.

All I could really recommend is digging into their code and figuring out how/what they setup the arguments for the SSH command.

"Host key verification failed." is specifically a SSH error, so it's possible they may be attempting to use the wrong key for the connection?

I'm really just speculating at this point, and I don't currently have the time to dig into EPIC's SSH code.

@Element808 was able to fix it (they commented above VERY recently) so there is a way to work around it.

avatar image spentak Jun 20 '19 at 04:59 AM

Yeah they basically are running a single command on the REMOTE (Mac) machine: 'echo ~' to get the base directory. And for some reason, the error they get back from SSH is "Host key verification failed"

avatar image spentak Jun 20 '19 at 06:23 AM

Okay so I finally got it working. Was debugging an Unreal bat file. Unreal has it looking for the same HOME on my Mac as was on PC - and of course they were named differently.

  1. Open CMD.exe as administrator

  2. Run the command below

setx -m HOME ^%UserProfile^%

What this does is instead grab the HOME directory, whatever it might be on Mac or on Windows. The ssh was failing because cygwin was trying to create a "/home/myUsername" directory on my Mac.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question