Errors like 'clang: error: no such file or directory' on iOS remote build

It’s about iOS remote build.
I build successfully yesterday.
But now always fail with errors like ‘clang: error: no such file or directory’
What’s the problem?


UATHelper: 패키징 (iOS): clang: error: no such file or directory: ‘ProjectsRichBeachBinariesIOS’
UATHelper: 패키징 (iOS): Doing bash -c ‘if [ -e “/Users/machine/UE4/Builds/DESKTOP-J93665P/G/Unreal Projects/RichBeach/Binaries/IOS/RichBeach-IOS-Shipping” ]; then eval $(stat -s “/Users/machine/UE4/Builds/DESKTOP-J93665P/G/Unreal Projects/RichBeach/Binaries/IOS/RichBeach-IOS-Shipping”) && echo $st_mtime,$st_size; fi’
UATHelper: 패키징 (iOS): Execute took 00:00:00.2718764
UATHelper: 패키징 (iOS): ERROR: UBT ERROR: Failed to produce item: /Users/machine/UE4/Builds/DESKTOP-J93665P/G/Unreal Projects/RichBeach/Binaries/IOS/RichBeach-IOS-Shipping
UATHelper: 패키징 (iOS): Total build time: 33.57 seconds (Remote executor: 0.00 seconds)
UATHelper: 패키징 (iOS): Took 33.7564604s to run UnrealBuildTool.exe, ExitCode=5
UATHelper: 패키징 (iOS): ERROR: Command failed (Result:5): C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\DotNET\UnrealBuildTool.exe RichBeach IOS Shipping -Project=“G:\Unreal Projects\RichBeach\RichBeach.uproject” “G:\Unreal Projects\RichBeach\RichBeach.uproject” -NoUBTMakefiles -remoteini=“G:\Unreal Projects\RichBeach” -skipdeploy -flushmac -noxge -NoH
otReload -ignorejunk. See logfile for details: ‘UnrealBuildTool-2018.02.08-23.02.00.txt’
UATHelper: 패키징 (iOS): (see C:\Users\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)
UATHelper: 패키징 (iOS): AutomationTool exiting with ExitCode=5 (5)
UATHelper: 패키징 (iOS): BUILD FAILED
PackagingResults: Error: Unknown Error

Hi, did you manage to solve this issue?
Thanks.

I’m also having the same issue, can anyone help?

I update unreal & Xcode.
Then solved.

Hi, I was using remote build and my problem was with Windows and more specific with some files from UE4- build from source, that didn’t have authority(Read\Write).

I’m a newbie programmer. So I’m not sure what is the problem.
But If you have some times, check these.
And I’m a korean who can’t speak english well.

  • ssh key file’s access permission must have only “users”
    You can find key file at
    C:\Users"windowusername"\AppData\Roaming\Unreal Engine\UnrealBuildTool\SSHKeys"macbookname"macbookusername"\RemoteToolChainPrivate.key

  • At macbook, your certification key → your key (It’s key icon) two touch
    get information (or something like that) → select access controll tab (or somthing like that) → select all program can access

  • Remote login → all user can access

I wish it helps you. Good luck!

Hi, I’m also using remote build from windows 10 and UE4 4.20

apart from the files titoro mentioned which ones did you need change the authority on for read/write?

Thanks

Well… it was months ago, can’t remember which ones exactly. You could try with Engine\Content folder, or maybe you should track at log file for directories that shows error. Open Properties and at the Security tab give your user Full Control permission.

I’ve tracked the log file and the error I’m getting is saying " there is no such file or directory…then it gives a location on the mac ending with UE4/shipping/projectname/Module.projectname.cpp

I’ve looked on the mac and its generated the directory but it can’t seem to generate the .cpp file on the mac. Not sure if you know what permissions I’d need to change to allow this?

Thanks

Just google it, like i did. I don’t have Mac, and i had to use virtual Mac OS, but anyway. Here for example: How To Change File Permissions Using The Terminal - ChrisWrites.com
If, in fact, the permission is the issue in your case.

For anyone else on PC wondering, I was able to get it working after changing the permissions of the RemoteToolChainPrivate.key in app data to full controll, changing the certificate permissions on the mac to trust all, moving my project from the desktop to the C:/ drive and opening it as admin.

Glad to hear you managed to solve the issue. I have forgotten all the steps at Mac side, but yeah, changing the certificate permissions to trust all is the key thing. I don’t remember to have any issue with the project dir.
Good luck with your project!