[iOS] Remote build fail to genarate iPA for dSYM

Hi,

Recently I try to package our game to iOS platform, but stuck with remote build issue in Windows-PC.

when I try to build/package our project in Mac-mini, it works fine.
But it fail to launch/package in windows remote build with following error.

I also use an empty c++ project to test the package.

zip -q -r -y -0 -T TestIOSWin.ipa Payload iTunesArtwork -x Payload/TestIOSWin.app.dSYM/ -x Payload/TestIOSWin.app.dSYM/* -x Payload/TestIOSWin.app.dSYM/Contents/ -x Payload/TestIOSWin.app.dSYM/Contents/* -x Payload/TestIOSWin.app.dSYM/Contents/Resources/ -x Payload/TestIOSWin.app.dSYM/Contents/Resources/*  -x Payload/TestIOSWin.app.dSYM/Contents/Resources/DWARF/ -x Payload/TestIOSWin.app.dSYM/Contents/Resources/DWARF/*
LogPlayLevel: UnrealBuildTool: Running SSH on 192.168.1.178 ...
LogPlayLevel: UnrealBuildTool: zsh:1: no matches found: Payload/TestIOSWin.app.dSYM/*
LogPlayLevel: UnrealBuildTool: Execute took 00:00:00.3460000
LogPlayLevel: UnrealBuildTool: IPP ERROR: RPCCommand Zip failed with return code Error_Unknown
LogPlayLevel: UnrealBuildTool: IPP WARNING: Error in previous command; suppressing: GetStubIPA
LogPlayLevel: UnrealBuildTool: Finished packaging into IPA (took 0.35 s)
LogPlayLevel: UnrealBuildTool: ERROR: System.Exception: IPP ERROR: RPCCommand Zip failed with return code Error_Unknown

I’ve check the Payload folder, there are no TestIOSWin.app.dSYM generated there, so it cause the error above.

Any idea for the error ?

Full log:

LogPlayLevel: UnrealBuildTool: ** BUILD SUCCEEDED **
LogPlayLevel: UnrealBuildTool: Execute took 00:00:02.4590000
LogPlayLevel: UnrealBuildTool:  ... remove temporary key chain
LogPlayLevel: UnrealBuildTool:   Using signing identity 'iPhone Developer'
LogPlayLevel: UnrealBuildTool:  ... working folder: "/Users/test/UE4/Builds/OP-PC-003/C/Users/pc/Documents/Unreal Projects/TestIOSWin/Binaries/IOS/XcodeSupportFiles/.."
LogPlayLevel: UnrealBuildTool:  ... security list-keychains -s "$HOME/Library/Keychains/login.keychain" && security delete-keychain "$HOME/Library/Keychains/UE4TempKeychain.keychain"
LogPlayLevel: UnrealBuildTool:  ... full command: 192.168.1.178 "/Users/test/UE4/Builds/OP-PC-003/C/Users/pc/Documents/Unreal Projects/TestIOSWin/Binaries/IOS/XcodeSupportFiles/.." security list-keychains -s "$HOME/Library/Keychains/login.keychain" && security delete-keychain "$HOME/Library/Keychains/UE4TempKeychain.keychain"
LogPlayLevel: UnrealBuildTool: Running SSH on 192.168.1.178 ...
LogPlayLevel: UnrealBuildTool: Execute took 00:00:00.4080000
LogPlayLevel: UnrealBuildTool: Finished creating .app directory on Mac (took 26.25 s)
LogPlayLevel: UnrealBuildTool:  ... zipping
LogPlayLevel: UnrealBuildTool:  ... working folder: "/Users/test/UE4/Builds/OP-PC-003/C/Users/pc/Documents/Unreal Projects/TestIOSWin/Binaries/IOS"
LogPlayLevel: UnrealBuildTool:  ... zip -q -r -y -0 -T TestIOSWin.ipa Payload iTunesArtwork -x Payload/TestIOSWin.app.dSYM/ -x Payload/TestIOSWin.app.dSYM/* -x Payload/TestIOSWin.app.dSYM/Contents/ -x Payload/TestIOSWin.app.dSYM/Contents/* -x Payload/TestIOSWin.app.dSYM/Contents/Resources/ -x Payload/TestIOSWin.app.dSYM/Contents/Resources/*  -x Payload/TestIOSWin.app.dSYM/Contents/Resources/DWARF/ -x Payload/TestIOSWin.app.dSYM/Contents/Resources/DWARF/*
LogPlayLevel: UnrealBuildTool:  ... full command: 192.168.1.178 "/Users/test/UE4/Builds/OP-PC-003/C/Users/pc/Documents/Unreal Projects/TestIOSWin/Binaries/IOS" zip -q -r -y -0 -T TestIOSWin.ipa Payload iTunesArtwork -x Payload/TestIOSWin.app.dSYM/ -x Payload/TestIOSWin.app.dSYM/* -x Payload/TestIOSWin.app.dSYM/Contents/ -x Payload/TestIOSWin.app.dSYM/Con
tents/* -x Payload/TestIOSWin.app.dSYM/Contents/Resources/ -x Payload/TestIOSWin.app.dSYM/Contents/Resources/*  -x Payload/TestIOSWin.app.dSYM/Contents/Resources/DWARF/ -x Payload/TestIOSWin.app.dSYM/Contents/Resources/DWARF/*
LogPlayLevel: UnrealBuildTool: Running SSH on 192.168.1.178 ...
LogPlayLevel: UnrealBuildTool: zsh:1: no matches found: Payload/TestIOSWin.app.dSYM/*
LogPlayLevel: UnrealBuildTool: Execute took 00:00:00.3460000
LogPlayLevel: UnrealBuildTool: IPP ERROR: RPCCommand Zip failed with return code Error_Unknown
LogPlayLevel: UnrealBuildTool: IPP WARNING: Error in previous command; suppressing: GetStubIPA
LogPlayLevel: UnrealBuildTool: Finished packaging into IPA (took 0.35 s)
LogPlayLevel: UnrealBuildTool: ERROR: System.Exception: IPP ERROR: RPCCommand Zip failed with return code Error_Unknown
LogPlayLevel: UnrealBuildTool:    �� UnrealBuildTool.IOSToolChain.PostBuildSync(UEBuildTarget Target) λ�� C:\Program Files\Epic Games\UE_4.14\Engine\Source\Programs\UnrealBuildTool\IOS\IOSToolChain.cs:�к� 1452
LogPlayLevel: UnrealBuildTool:    �� UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments, FileReference ProjectFile) λ�� C:\Program Files\Epic Games\UE_4.14\Engine\Source\Programs\UnrealBuildTool\System\UnrealBuildTool.cs:�к� 2046
LogPlayLevel: UnrealBuildTool: Total build time: 90.93 seconds
LogPlayLevel: CommandUtils.Run: Run: Took 90.989s to run UnrealBuildTool.exe, ExitCode=1
LogPlayLevel: Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.CommandUtils+CommandFailedException: Command failed (Result:1): C:\Program Files\Epic Games\UE_4.14\Engine\Binaries\DotNET\UnrealBuildTool.exe TestIOSWin IOS Development -Project="C:\Users\pc\Documents\Unreal Projects\TestIOSWin\TestIOSWin.uproject"  "C:\Users\pc\Docu
ments\Unreal Projects\TestIOSWin\TestIOSWin.uproject"  -remoteini="C:\Users\pc\Documents\Unreal Projects\TestIOSWin" -noxge -NoHotReload -ignorejunk. See logfile for details: 'UnrealBuildTool-2017.02.17-20.27.17.txt'
LogPlayLevel:    在 AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
LogPlayLevel:    在 AutomationTool.CommandUtils.RunAndLog(CommandEnvironment Env, String App, String CommandLine, String LogName, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars, SpewFilterCallbackType SpewFilterCallback)
LogPlayLevel:    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, String CommandLine, String LogName, Dictionary`2 EnvVars)
LogPlayLevel:    在 AutomationTool.CommandUtils.RunUBT(CommandEnvironment Env, String UBTExecutable, FileReference Project, String Target, String Platform, String Config, String AdditionalArgs, String LogName, Dictionary`2 EnvVars)
LogPlayLevel:    在 AutomationTool.UE4Build.BuildWithUBT(String TargetName, UnrealTargetPlatform TargetPlatform, String Config, FileReference UprojectPath, Boolean ForceMonolithic, Boolean ForceNonUnity, Boolean ForceDebugInfo, Boolean ForceFlushMac, Boolean DisableXGE, String InAddArgs, Boolean ForceUnity, Dictionary`2 EnvVars)
LogPlayLevel:    在 AutomationTool.UE4Build.Build(BuildAgenda Agenda, Nullable`1 InDeleteBuildProducts, Boolean InUpdateVersionFiles, Boolean InForceNoXGE, Boolean InUseParallelExecutor, Boolean InForceNonUnity, Boolean InForceUnity, Boolean InShowProgress, Dictionary`2 PlatformEnvVars, Nullable`1 InChangelistNumberOverride, Dictionary`2 InTargetToManifest)
LogPlayLevel:    在 Project.Build(BuildCommand Command, ProjectParams Params, Int32 WorkingCL, ProjectBuildTargets TargetMask)
LogPlayLevel:    在 BuildCookRun.DoBuildCookRun(ProjectParams Params)
LogPlayLevel:    在 BuildCookRun.ExecuteBuild()
LogPlayLevel:    在 AutomationTool.BuildCommand.Execute()
LogPlayLevel:    在 AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands)
LogPlayLevel:    在 AutomationTool.Automation.Process(String[] Arguments)
LogPlayLevel:    在 AutomationTool.Program.MainProc(Object Param)
LogPlayLevel:    在 AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
LogPlayLevel:    在 AutomationTool.Program.Main()
LogPlayLevel: Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 93.018272
LogPlayLevel: BUILD FAILED
PackagingResults:Error: Error Deployment failed! Unknown Error

Mcfn Feng,

It’s possible that you haven’t built all the tools necessary to package for iOS. Please make sure you’ve set up remote building aka [rsync][1] correctly and also review this [thread][2].

Good luck!

https://forums.unrealengine.com/authorize.php?code=4d1f99b72eec41e79d4c932112f83865&state=https%3A%2F%2Fforums.unrealengine.com%2Fshowthread.php%3F78804-Windows-gt-iOS-Rsync-Remote-Build-Guide-(4-8)
[2]: [iOS] Remote build failing to package stub ipa. (RSync) - Mobile - Epic Developer Community Forums