[UE4] iOS Cook/Packaging failure - exit code 137 - AutomationTool exit code 25

I’ve been trying to create an iOS build for a few days but with no success.

As we are using custom plugins written in C++ I have cloned the UE4 engine source to my Mac from the official repo and have compiled version 4.27 in Xcode 14.2 before switching my project over, generating the project files and running the editor through Xcode.

Whenever I try to create a deployable package I get an “Error: Cook Failed” in the output logs - more below:

Project.Build: ********** BUILD COMMAND COMPLETED **********
InternalUtils.SafeFileExists: SafeFileExists /Users/aprioridigital/wkspaces/repo_ddeception_4-27/DDeception.uproject=True
Project.Cook: ********** COOK COMMAND STARTED **********
InternalUtils.SafeFileExists: SafeFileExists /Users/aprioridigital/wkspaces/ue/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor=True
Project.Cook: HasMapsToCook TitleScreen
Project.Cook: Params.HasMapsToCook TitleScreen
CommandUtils.RunCommandlet: Running UE4Editor Cook for project /Users/aprioridigital/wkspaces/repo_ddeception_4-27/DDeception.uproject
CommandUtils.RunCommandlet: Commandlet log file is /Users/aprioridigital/wkspaces/ue/Engine/Programs/AutomationTool/Saved/Cook-2023.02.13-00.31.22.txt
InternalUtils.SafeFileExists: SafeFileExists /Users/aprioridigital/wkspaces/ue/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor=True
InternalUtils.SafeFileExists: SafeFileExists /Users/aprioridigital/wkspaces/ue/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor=True
CommandUtils.Run: Running: /Users/aprioridigital/wkspaces/ue/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor /Users/aprioridigital/wkspaces/repo_ddeception_4-27/DDeception.uproject -run=Cook -Map=TitleScreen -TargetPlatform=IOS -fileopenlog -unversioned -abslog=/Users/aprioridigital/wkspaces/ue/Engine/Programs/AutomationTool/Saved/Cook-2023.02.13-00.31.22.txt -stdout -CrashForUAT -unattended -NoLogTimes  -UTF8Output
ProcessResult.StdOut:   LogConsoleResponse: Display: Failed to find resolution value strings in scalability ini. Falling back to default.
ProcessResult.StdOut:   LogConsoleResponse: Display: Failed to find resolution value strings in scalability ini. Falling back to default.
ProcessResult.StdOut:   LogInit: Display: Running engine for game: DDeception
ProcessResult.StdErr:   2023-02-13 00:31:25.269576+0000 UE4Editor[56247:340057] [UE4] Looking for binary: ../../../../repo_ddeception_4-27/Config/BinaryConfig.ini
ProcessResult.StdOut:   LogInit: Display: Loading text-based GConfig....
ProcessResult.StdOut:   LogHAL: Display: Platform has ~ 16 GB [17179869184 / 17179869184 / 16], which maps to Larger [LargestMinGB=32, LargerMinGB=12, DefaultMinGB=8, SmallerMinGB=6, SmallestMinGB=0)
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Lumin'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'LuminClient'
ProcessResult.StdErr:   2023-02-13 00:31:27.460993+0000 UE4Editor[56247:340057] _MobileDeviceLibraryInitRoutine (thread 0x700012b96000): MobileDevice.framework version: 1497.41.2
ProcessResult.StdErr:   2023-02-13 00:31:27.482072+0000 UE4Editor[56247:340057] _AMDRemotePairingCopyFrameworkVersion_block_invoke (thread 0x700012b96000): RemotePairing found at /Library/Apple/System/Library/PrivateFrameworks/RemotePairing.framework
ProcessResult.StdErr:   2023-02-13 00:31:27.482437+0000 UE4Editor[56247:340057] _MobileDeviceLibraryInitRoutine (thread 0x700012b96000): RemotePairing.framework version: 58.2
ProcessResult.StdErr:   2023-02-13 00:31:27.484451+0000 UE4Editor[56247:340057] [library] USBMuxListenerCreateFiltered:898 Created 0x7ff2d7320510
ProcessResult.StdErr:   2023-02-13 00:31:27.484853+0000 UE4Editor[56247:340057] _SubscribeForMuxNotifications (thread 0x700012b96000): returned 0x0.
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'IOSClient'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'IOS'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'MacNoEditor'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Mac'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'MacClient'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'MacServer'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'TVOSClient'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'TVOS'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ASTC'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_DXT'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ETC2'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'AndroidClient'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ASTCClient'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_DXTClient'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ETC2Client'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_Multi'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_MultiClient'
ProcessResult.StdOut:   LogTargetPlatformManager: Display: Building Assets For IOS
ProcessResult.StdOut:   LogTextureFormatOodle: Display: Oodle Texture 2.9.0 init RDO Off
ProcessResult.StdOut:   LogShaderCompilers: Display: Using Local Shader Compiler.
ProcessResult.StdOut:   LogDerivedDataCache: Display: Max Cache Size: 512 MB
ProcessResult.StdOut:   LogDerivedDataCache: Display: Loaded Boot cache: ../../../../repo_ddeception_4-27/DerivedDataCache/Boot.ddc
ProcessResult.StdOut:   LogDerivedDataCache: Display: Performance to ../../../Engine/DerivedDataCache: Latency=0.10ms. RandomReadSpeed=171.53MBs, RandomWriteSpeed=113.48MBs. Assigned SpeedClass 'Local'
CommandUtils.Run: Took 16.285983s to run UE4Editor, ExitCode=137
CommandUtils.RunCommandlet: Pausing before checking for crash logs...
InternalUtils.SafeDeleteFile: SafeDeleteFile /Users/aprioridigital/Library/Logs/Unreal Engine/LocalBuildLogs/Cook-2023.02.13-00.31.49.txt
InternalUtils.SafeCopyFile: SafeCopyFile /Users/aprioridigital/wkspaces/ue/Engine/Programs/AutomationTool/Saved/Cook-2023.02.13-00.31.22.txt /Users/aprioridigital/Library/Logs/Unreal Engine/LocalBuildLogs/Cook-2023.02.13-00.31.49.txt
InternalUtils.SafeDeleteFile: SafeDeleteFile /Users/aprioridigital/wkspaces/ue/Engine/Programs/AutomationTool/Saved/Cook-2023.02.13-00.31.22.txt
Log.WriteException: ==============================================================================
Log.WriteException: ERROR: Cook failed.
Log.WriteException:        (see /Users/aprioridigital/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt for full exception trace)
Log.WriteException: 
Log.WriteException: CommandletException: Editor terminated with exit code 137 (signal 9) while running Cook for /Users/aprioridigital/wkspaces/repo_ddeception_4-27/DDeception.uproject; see log /Users/aprioridigital/Library/Logs/Unreal Engine/LocalBuildLogs/Cook-2023.02.13-00.31.49.txt
Log.WriteException:   at AutomationTool.CommandUtils.RunCommandlet (Tools.DotNETCommon.FileReference ProjectName, System.String UE4Exe, System.String Commandlet, System.String Parameters, System.String& DestLogFile, System.Int32 ErrorLevel) [0x0077d] in <cdaee3988b1e46b2bf58cacc2edf9ec0>:0 
Log.WriteException:   at AutomationTool.CommandUtils.RunCommandlet (Tools.DotNETCommon.FileReference ProjectName, System.String UE4Exe, System.String Commandlet, System.String Parameters, System.Int32 ErrorLevel) [0x00001] in <cdaee3988b1e46b2bf58cacc2edf9ec0>:0 
Log.WriteException:   at AutomationTool.CommandUtils.CookCommandlet (Tools.DotNETCommon.FileReference ProjectName, System.String UE4Exe, System.String[] Maps, System.String[] Dirs, System.String InternationalizationPreset, System.String[] CulturesToCook, System.String TargetPlatform, System.String Parameters) [0x0013e] in <cdaee3988b1e46b2bf58cacc2edf9ec0>:0 
Log.WriteException:   at Project.Cook (AutomationTool.ProjectParams Params) [0x0085d] in <d7a120d0e6c44fad9184e1cf381769ca>:0 Wrapped by AutomationException: Cook failed.
Log.WriteException:   at Project.Cook (AutomationTool.ProjectParams Params) [0x0089a] in <d7a120d0e6c44fad9184e1cf381769ca>:0 
Log.WriteException:   at BuildCookRun.DoBuildCookRun (AutomationTool.ProjectParams Params) [0x00074] in <d7a120d0e6c44fad9184e1cf381769ca>:0 
Log.WriteException:   at BuildCookRun.ExecuteBuild () [0x00040] in <d7a120d0e6c44fad9184e1cf381769ca>:0 
Log.WriteException:   at AutomationTool.BuildCommand.Execute () [0x00001] in <cdaee3988b1e46b2bf58cacc2edf9ec0>:0 
Log.WriteException:   at AutomationTool.Automation.Execute (System.Collections.Generic.List`1[T] CommandsToExecute, System.Collections.Generic.Dictionary`2[TKey,TValue] Commands) [0x0007c] in <cdaee3988b1e46b2bf58cacc2edf9ec0>:0 
Log.WriteException:   at AutomationTool.Automation.Process (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00286] in <cdaee3988b1e46b2bf58cacc2edf9ec0>:0 
Log.WriteException:   at AutomationTool.Program.MainProc (System.String[] Arguments, UnrealBuildTool.StartupTraceListener StartupListener) [0x00001] in <7e6a575e681d4c7a94879528e08ab217>:0 
Log.WriteException:   at AutomationTool.Program+<>c__DisplayClass1_0.<Main>b__2 () [0x00000] in <7e6a575e681d4c7a94879528e08ab217>:0 
Log.WriteException:   at AutomationTool.InternalUtils.RunSingleInstance (System.Func`1[TResult] Main) [0x000a0] in <cdaee3988b1e46b2bf58cacc2edf9ec0>:0 
Log.WriteException:   at AutomationTool.Program.Main (System.String[] Arguments) [0x0020a] in <7e6a575e681d4c7a94879528e08ab217>:0
Log.WriteException: ==============================================================================
Program.Main: AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)

Nothing in the Cook log appears very helpful:

LogInit: macOS 13.0.1 (22A400)
LogInit: Model: MacBookPro16,1
LogInit: CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
LogInit: CPU Page size=4096, Cores=6, HT=12
LogInit: Computer: Aprioris-MBP
LogInit: User: aprioridigital
LogInit: High frequency timer resolution =1000.000000 MHz
LogInit: Power Source: AC Power
LogInit: Xcode developer folder path: /Applications/Xcode.app/Contents/Developer, version 14.2.0
LogInit: Memory total: Physical=16.0GB (16GB approx) Pagefile=6.0GB Virtual=22.0GB
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Lumin'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'LuminClient'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'IOSClient'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'IOS'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'MacNoEditor'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Mac'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'MacClient'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'MacServer'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'TVOSClient'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'TVOS'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ASTC'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_DXT'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ETC2'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'AndroidClient'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ASTCClient'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_DXTClient'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_ETC2Client'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_Multi'
LogTargetPlatformManager: Display: Loaded TargetPlatform 'Android_MultiClient'
LogTargetPlatformManager: Display: Building Assets For IOS
LogTextureFormatOodle: Display: Oodle Texture 2.9.0 init RDO Off
LogInit: Physics initialised using underlying interface: PhysX
LogInit: Using OS detected language (en-GB).
LogInit: Using OS detected locale (en-GB).
LogTextLocalizationManager: No specific localization for 'en-GB' exists, so the 'en' localization will be used.
LogRendererCore: Ray tracing is disabled. Reason: r.RayTracing=0.
LogShaderCompilers: Guid format shader working directory is 14 characters bigger than the processId version (../../../../repo_ddeception_4-27/Intermediate/Shaders/WorkingDirectory/56247/).
LogShaderCompilers: Cleaned the shader compiler working directory '../../../../repo_ddeception_4-27/Intermediate/Shaders/tmp/892C0AA75347B9C2EABA9E9DBB2F2326/'.
LogShaderCompilers: Display: Using Local Shader Compiler.
LogDerivedDataCache: Display: Max Cache Size: 512 MB
LogDerivedDataCache: Loaded boot cache 0.22s 148MB ../../../../repo_ddeception_4-27/DerivedDataCache/Boot.ddc.
LogDerivedDataCache: Display: Loaded Boot cache: ../../../../repo_ddeception_4-27/DerivedDataCache/Boot.ddc
LogDerivedDataCache: FDerivedDataBackendGraph:  Pak pak cache file ../../../../repo_ddeception_4-27/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
LogDerivedDataCache: Unable to find inner node Pak for hierarchical cache Hierarchy.
LogDerivedDataCache: FDerivedDataBackendGraph:  EnginePak pak cache file ../../../Engine/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
LogDerivedDataCache: Unable to find inner node EnginePak for hierarchical cache Hierarchy.
LogDerivedDataCache: Speed tests for ../../../Engine/DerivedDataCache took 0.01 seconds
LogDerivedDataCache: Display: Performance to ../../../Engine/DerivedDataCache: Latency=0.10ms. RandomReadSpeed=171.53MBs, RandomWriteSpeed=113.48MBs. Assigned SpeedClass 'Local'
LogDerivedDataCache: Using Local data cache path ../../../Engine/DerivedDataCache: Writable
LogDerivedDataCache: Shared data cache path not found in *engine.ini, will not use an Shared cache.
LogDerivedDataCache: Unable to find inner node Shared for hierarchical cache Hierarchy.
LogAssetRegistry: FAssetRegistry took 0.0034 seconds to start up
LogInit: Selected Device Profile: [Mac]
LogInit: Active device profile: [0x2741a0d00][0x267024200 49] Mac
LogInit: Profiles: [0x274221400][0x2722bb680 49] Windows, [0x2741da800][0x2722c3800 49] WindowsNoEditor, [0x274222200][0x2722c7980 49] WindowsServer, [0x2741db500][0x2722cbb00 49] WindowsClient, [0x274222f00][0x2722ce100 49] IOS, [0x2741d9600][0x2722d2280 49] iPadAir, [0x274223c00][0x2722d6400 49] iPadAir2, [0x274196600][0x2722e46c0 49] IPadPro, [0x274196700][0x2722da700 49] iPadAir3, [0x2741d8300][0x272440880 49] iPadAir4, [0x274197500][0x272444a00 49] iPadMini2, [0x2741dac00][0x272448b80 49] iPadMini3, [0x274196400][0x27244cd00 49] iPadMini4, [0x2741d9b00][0x272450e80 49] iPadMini5, [0x2741a1f00][0x272459140 49] iPhone6, [0x2741a2000][0x272455180 49] iPodTouch6, [0x274222d00][0x27245d3c0 49] iPhone7, [0x274221500][0x2722bf400 49] iPodTouch7, [0x274197200][0x272461540 49] iPhone5S, [0x274222000][0x2724696c0 49] iPhone6Plus, [0x274195200][0x27246d840 49] iPhone6S, [0x274222b00][0x2724719c0 49] iPhone6SPlus, [0x274194a00][0x272475b40 49] iPhone7Plus, [0x274221100][0x272478140 49] iPhoneSE, [0x274194800][0x27247c2c0 49] iPhone8, [0x274222c00][0x272480440 49] iPhone8Plus, [0x274197100][0x2724845c0 49] iPhoneX, [0x274220f00][0x272488740 49] iPhoneXS, [0x274196f00][0x266fbf8c0 49] iPhoneXSMax, [0x274222900][0x266fc3a40 49] iPhoneXR, [0x2741a0400][0x266fc7bc0 49] iPhone11, [0x274195300][0x266fcbd40 49] iPhone11Pro, [0x2741a0c00][0x266fcfec0 49] iPhone11ProMax, [0x274195b00][0x266fd4040 49] iPhoneSE2, [0x2741a1400][0x266fd81c0 49] iPhone12Mini, [0x274196300][0x266fdc340 49] iPhone12, [0x2741a1a00][0x272465480 49] iPhone12Pro, [0x274196100][0x266fe05c0 49] iPhone12ProMax, [0x2741a1d00][0x266fe4700 49] iPadPro105, [0x274195c00][0x266fec880 49] iPadPro129, [0x2741a3f00][0x266ff0a00 49] iPadPro97, [0x274194400][0x266ff4b80 49] iPadPro2_129, [0x274221d00][0x266ff7180 49] iPad5, [0x2741a1e00][0x266ffb300 49] iPad6, [0x274195f00][0x266fff480 49] iPad7, [0x2741a0800][0x267003600 49] iPad8, [0x274194900][0x267007780 49] iPadPro11, [0x2741a0a00][0x26700b900 49] iPadPro2_11, [0x274195a00][0x26700fa80 49] iPadPro3_129, [0x2741a3500][0x267013c00 49] iPadPro4_129, [0x274194d00][0x267017d80 49] AppleTV, [0x2741a0500][0x26701bf00 49] AppleTV4K, [0x274197600][0x267020080 49] TVOS, [0x2741a0d00][0x267024200 49] Mac, [0x274197700][0x267028380 49] MacClient, [0x2741a2500][0x26acb4500 49] MacNoEditor, [0x274194b00][0x266fe8640 49] MacServer, [0x2741a1800][0x26acb8780 49] Linux, [0x274196500][0x26acbc8c0 49] LinuxAArch64, [0x2741a0300][0x26acc4a40 49] LinuxNoEditor, [0x274194c00][0x26acc8bc0 49] LinuxAArch64NoEditor, [0x2741a2800][0x26accb1c0 49] LinuxClient, [0x274194300][0x26accf340 49] LinuxAArch64Client, [0x2741a3100][0x26acd34c0 49] LinuxServer, [0x274194600][0x26acd7640 49] LinuxAArch64Server, [0x2741a2400][0x26acdb7c0 49] Android, [0x274195d00][0x26acdf940 49] Android_Low, [0x2741a2c00][0x26ace3ac0 49] Android_Mid, [0x274197a00][0x26ace7c40 49] Android_High, [0x2741a3300][0x26acebdc0 49] Android_Default, [0x274194500][0x26aceff40 49] Android_Adreno4xx, [0x2741a2f00][0x26acf40c0 49] Android_Adreno5xx_Low, [0x274196a00][0x26acf8240 49] Android_Adreno5xx, [0x2741a0200][0x26acfc3c0 49] Android_Adreno6xx, [0x274196900][0x26ad00540 49] Android_Adreno6xx_Vulkan, [0x2741a3c00][0x26ad046c0 49] Android_Mali_T6xx, [0x274195900][0x26acc0800 49] Android_Mali_T7xx, [0x2741a1b00][0x26ad08940 49] Android_Mali_T8xx, [0x274194100][0x26ad0ca80 49] Android_Mali_G71, [0x2741a2700][0x26ad10bc0 49] Android_Mali_G72, [0x274197b00][0x26ad171c0 49] Android_Mali_G72_Vulkan, [0x2741a3600][0x26ad1b340 49] Android_Mali_G76, [0x274196000][0x26ad1f4c0 49] Android_Mali_G76_Vulkan, [0x2741a3800][0x26ad23640 49] Android_Mali_G77, [0x274195000][0x26ad277c0 49] Android_Mali_G77_Vulkan, [0x2741a2100][0x26ad2b940 49] Android_Mali_G78, [0x274197000][0x26b636ac0 49] Android_Mali_G78_Vulkan, [0x2741a1700][0x26b63ac40 49] Android_Mali_G710, [0x274194700][0x26b63edc0 49] Android_Mali_G710_Vulkan, [0x2741d9c00][0x26b642f40 49] Android_Vulkan_SM5, [0x274223200][0x26b6470c0 49] Android_PowerVR_G6xxx, [0x2741d8a00][0x26b64b240 49] Android_PowerVR_GT7xxx, [0x274221c00][0x26b64f3c0 49] Android_PowerVR_GE8xxx, [0x2741d8e00][0x26b653540 49] Android_PowerVR_GM9xxx, [0x274223000][0x26b6576c0 49] Android_PowerVR_GM9xxx_Vulkan, [0x2741d8900][0x26b65b840 49] Android_TegraK1, [0x274220d00][0x26ad14980 49] Android_Unknown_Vulkan, [0x2741dab00][0x26b65fac0 49] Lumin, [0x274223300][0x26b663c00 49] Lumin_Desktop, [0x2741db100][0x26b6661c0 49] HoloLens, 
LogMeshReduction: Using QuadricMeshReduction for automatic static mesh reduction
LogMeshReduction: Using SimplygonMeshReduction for automatic skeletal mesh reduction
LogMeshReduction: No automatic mesh merging module available
LogMeshReduction: No distributed automatic mesh merging module available
LogMeshMerging: No automatic mesh merging module available
LogMeshMerging: No distributed automatic mesh merging module available
LogNetVersion: DDeception 1.0.0, NetCL: 0, EngineNetVer: 17, GameNetVer: 0 (Checksum: 314098023)
LogCollectionManager: Loaded 0 collections in 0.001929 seconds
LogFileCache: Scanning file cache for directory '/Users/aprioridigital/wkspaces/repo_ddeception_4-27/Saved/Collections/' took 0.00s
LogFileCache: Scanning file cache for directory '/Users/aprioridigital/wkspaces/repo_ddeception_4-27/Content/Developers/aprioridigital/Collections/' took 0.00s
LogFileCache: Scanning file cache for directory '/Users/aprioridigital/wkspaces/repo_ddeception_4-27/Content/Collections/' took 0.00s
LogCollectionManager: Fixed up redirectors for 0 collections in 0.000005 seconds (updated 0 objects)
LogPython: Using Python 3.7.7
LogNiagaraDebuggerClient: Niagara Debugger Client Initialized | Session: 66785C0DFB4C00CAE37E3C957F852F08 | Instance: F0750F8D0E42CBE0A2F46EB9ADAA4658 (Aprioris-MBP-56247).

I have wondered if this is a memory issue as I’m getting the same output Kieran in this similar post https://forums.unrealengine.com/t/exit-code-137-ue5-0-3-cooking/668860

To see if this was an issue I have changed the MemoryMaxUsedPhysical to 12GB in the BaseEditor.ini file (my physical memory is 16GB) but this hasn’t had an effect.

I also feel this might be a certificate issue as I occasionally have an error box pop up saying Code Signature Invalid

Any help or input would be really appreciated as I’ve tried everything I can think of at this point short of tearing the project apart.

This error message can occur for several reasons, including missing dependencies, compatibility issues between the engine version and the project, or problems with the actual cooking process.

To diagnose the issue, you can start by checking the log file mentioned in the output logs “/Users/aprioridigital/wkspaces/ue/Engine/Programs/AutomationTool/Saved/Cook-2023.02.13-00.31.22.txt”. This log file should contain more detailed information about what went wrong during the cook process.

You could also try the following steps to resolve the issue:

  • Verify that the dependencies required for building for iOS are installed on your Mac.
  • Make sure that your Xcode version is compatible with the UE4 engine version you are using.
  • Try disabling any custom plugins or modifications to the engine code and attempting the build again to see if those are causing the issue.
  • If the issue persists, try cleaning the project by removing the Binaries and Intermediate folders, then rebuild the project and try cooking again.
  • If the issue still persists, try re-cloning the UE4 engine source code from the official repository and recompiling the engine in Xcode before switching your project over.

Also, have you tried to package any of the Unreal Engine templates? If you are able to package them, then you know that your packaging process is fine.

Hi Elias,

Thanks for your reply, I’ve gone back to the beginning and recompiled everything etc.
I think things are looking better but I have a remaining issue with shader compilation, if you have any ideas about what might be going wrong I’d love to know.
I have posted a new question here https://forums.unrealengine.com/t/ios-packaging-shader-undeclared-identifier-scenetexturelookup-and-cannot-initialize-fmaterialpixeparameters/776692

Really appreciated, thanks again.