Building iOS C++ project on PC

Hey everyone,

I was able to successfully build an iOS project using the old build 4.10. Now that I’ve updated my project to the 4.12, I’m having issue packaging my iOS project from PC to Mac using rsync.

At first, the rsync found with in the DeltaCopy did not work, so I use the rsync executable that is used in the actual Cygwin package (I believe the newer version of the cyg’s rsync works appropriately with windows 10). After that my project files was able to transfer over. However, when it came to finalizing the project, the IPhonePackager executable gave out an ‘OutOfMemory’ message. I will post the exact message. But here’s my real question, did the standard of the IPhonePackager executable changed within the last two builds? Any answer would help.

Thank you UE4 Community!

Here’s the error:

MainFrameActions: Packaging (iOS): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Command failed (Result:1): C:\UE4\Engine\Binaries\DotNET\IOS\IPhonePackager.exe RepackageFromStage "C:\Users\\Documents\Unreal Projects\GrottoMerc
MainFrameActions: Packaging (iOS): sUE4\GrottoMercsUE4.uproject" -config Shipping -schemename GrottoMercsUE4 -schemeconfig "Shipping" -compress=best -sign -stagedir "C:\Users\\Documents\Unreal Projects\GrottoMercsUE4\Saved\StagedBuilds\IOS" -project "C:\Users\\Documents\Unreal Projects\GrottoMercsUE4\GrottoMercsUE4.uproject" -provision 
"iOS_Team_Provisioning_Profile_comPayanoGrottoMercs.mobileprovision" -certificate "iPhone Developer: Enmanuel Payano (K99QS979BF)". See logfile for details: 'IPhonePackager-2016.06.23-19.07.29.txt' 
MainFrameActions: Packaging (iOS):    at AutomationTool.CommandUtils.RunAndLog(String App, String CommandLine, String Logfile, Int32 MaxSuccessCode, String Input, ERunOptions Options, Dictionary`2 EnvVars) in C:\UE4\Engine\Source\Programs\AutomationTool\AutomationUtils\ProcessUtils.cs:line 814
MainFrameActions: Packaging (iOS):    at IOSPlatform.Package(ProjectParams Params, DeploymentContext SC, Int32 WorkingCL) in c:\UE4\Engine\Source\Programs\AutomationTool\IOS\IOSPlatform.Automation.cs:line 388
MainFrameActions: Packaging (iOS):    at Project.Package(ProjectParams Params, Int32 WorkingCL) in c:\UE4\Engine\Source\Programs\AutomationTool\Scripts\PackageCommand.Automation.cs:line 41
MainFrameActions: Packaging (iOS):    at BuildCookRun.DoBuildCookRun(ProjectParams Params) in c:\UE4\Engine\Source\Programs\AutomationTool\Scripts\BuildCookRun.Automation.cs:line 218
MainFrameActions: Packaging (iOS):    at AutomationTool.BuildCommand.Execute() in C:\UE4\Engine\Source\Programs\AutomationTool\AutomationUtils\BuildCommand.cs:line 28
MainFrameActions: Packaging (iOS):    at AutomationTool.Automation.Execute(List`1 CommandsToExecute, CaselessDictionary`1 Commands) in C:\UE4\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 538
MainFrameActions: Packaging (iOS):    at AutomationTool.Automation.Process(String[] CommandLine) in C:\UE4\Engine\Source\Programs\AutomationTool\AutomationUtils\Automation.cs:line 509
MainFrameActions: Packaging (iOS):    at AutomationTool.Program.MainProc(Object Param) in C:\UE4\Engine\Source\Programs\AutomationTool\Program.cs:line 131
MainFrameActions: Packaging (iOS):    at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param) in C:\UE4\Engine\Source\Programs\AutomationTool\AutomationUtils\Utils.cs:line 704
MainFrameActions: Packaging (iOS):    at AutomationTool.Program.Main() in C:\UE4\Engine\Source\Programs\AutomationTool\Program.cs:line 54
MainFrameActions: Packaging (iOS): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
MainFrameActions: Packaging (iOS): Domain_ProcessExit
MainFrameActions: Packaging (iOS): AutomationToolLauncher exiting with ExitCode=1
MainFrameActions: Packaging (iOS): copying UAT log files...
MainFrameActions: Packaging (iOS): BUILD FAILED
PackagingResults:Error: Error Unknown Error

Hello ,

Since you updated and ran into this problem, have you tried returning to the 4.10 version to ensure that it still works correctly? Also, could you post this log file mentioned in the one you posted above?

IPhonePackager-2016.06.23-19.07.29.txt

I’ll be asking about the iPhonePackager and if there have been any notable changes in the meantime.

Hey Matthew,

Thanks for your response. I haven’t reverted back to 4.10. I’ve attached the log with said error message. It’s not the original one however its the same error message that shows up when packaging to iOS.

Thanks!
text

Hello ,

I apologize for the delay. From looking at the messages you’ve been given, this is one that usually appears when the IPA is over 2GB which is too large. You’ll need to reduce the size of your packaged project to be able to deploy correctly. Are there any assets in the project that aren’t being used? If so, one possible way to reduce size would be to use the “List of maps to include in a packaged build” option in your Packaging settings. Select the appropriate maps and it should only package content that is being referenced in these maps.

Actually this wasn’t the problem. Someone was able to help me in within UE4 forum. It’s not the size but how the IPA was being packaged. Please see forum post here: https://forums.unrealengine.com/showthread.php?115028-Building-iOS-C-project-on-P

I’m glad to hear that you found a solution, but please don’t hesitate to let us know if a fix doesn’t work, I had assumed that your issue was resolved as you never said otherwise.