IOS or Macos packaging / cooking hangs showing no error in the log

I have a very simple UE project (standard Blank Template) and want to package it for IOS or MacOS on my Mac M1.
The Packaging project never closes, destination folder is empty but the logs seem to show that process is finished and no errors encountered.

End of log:
LogCookStats: Display: DDC Resource Stats
LogCookStats: Display: =======================================================================================================
LogCookStats: Display: Asset Type                          Total Time (Sec)  GameThread Time (Sec)  Assets Built  MB Processed
LogCookStats: Display: ----------------------------------  ----------------  ---------------------  ------------  ------------
LogCookStats: Display: Texture                                         0.03                   0.00           115        236.70
LogCookStats: Display: BulkDataList                                    0.03                   0.00            64          0.64
LogCookStats: Display: STREAMEDAUDIO                                   0.02                   0.00             0          3.62
LogCookStats: Display: Audio                                           0.02                   0.00             0          3.50
LogCookStats: Display: MaterialShader                                  0.00                   0.18             0        149.96
LogCookStats: Display: StaticMesh                                      0.00                   0.01             0          4.40
LogCookStats: Display: CardRepresentation                              0.00                   0.00             0          0.06
LogCookStats: Display: DistanceField                                   0.00                   0.01             0         72.94
LogCookStats: Display: GeometryCollection                              0.00                   0.00             1          0.00
LogCookStats: Display: NavCollision                                    0.00                   0.00             0          0.08
LogCookStats: Display: BulkDataPayloadId                               0.00                   0.00             6          0.01
LogCookStats: Display: GlobalShader                                    0.00                   0.01             0          8.17
LogCookStats: Display: GeometryCollectionRenderData                    0.00                   0.00             1          0.00
LogCookStats: Display: BodySetup                                       0.00                   0.00             0          1.01
LogPackageBuildDependencyTracker: Display: Package Accesses (745 referencing packages with a total of 9430 unique accesses)
LogCook: Display: Done!
LogSavePackage: Display: Took 0.001098s to verify the EDL loading graph.
LogCore: Engine exit requested (reason: Commandlet CookCommandlet_0 finished execution (result 0))
LogInit: Display: 
LogInit: Display: Warning/Error Summary (Unique only)
LogInit: Display: -----------------------------------
LogInit: Display: LogSourceControl: Warning: '../../../../../../laurent/Library/CloudStorage/Dropbox/Dev/UnrealEngine/Spheres/' is not part of a Git repository
LogInit: Display: 
LogInit: Display: Success - 0 error(s), 1 warning(s)
LogInit: Display: 
Execution of commandlet took:  16.77 seconds
LogCore: Engine exit requested (reason: EngineExit() was called; note: exit was already requested)
LogStaticMesh: Abandoning remaining async distance field tasks for shutdown
LogStaticMesh: Abandoning remaining async card representation tasks for shutdown
LogWorldMetrics: [Deinitialize]
LogWorldMetrics: [Clear]
LogLevelSequenceEditor: LevelSequenceEditor subsystem deinitialized.
LogStudioTelemetry: Ended StudioTelemetry Session
LogExit: Preparing to exit.
LogUObjectHash: Compacting FUObjectHashTables data took   0.39ms
LogDemo: Cleaned up 0 splitscreen connections, owner deletion: enabled
LogExit: Editor shut down
LogExit: Object subsystem successfully closed.
LogShaderCompilers: Display: Shaders left to compile 0
LogStudioTelemetry: Display: Shutdown StudioTelemetry Module
LogPakFile: Destroying PakPlatformFile
LogExit: Exiting.
Log file closed, 09/20/24 07:54:11

Any recommendation on how to troubleshoot this ?

[EDIT: Same issue when I freshly reinstall my Mac ; probably an incompatibility with Sequoia, I have raised bug #13037823]

If you are using any plugin enable(non epic), you will need visual studio and the appropriate sdk for it.

Try to disable your source control, i have seen even 1 warning that can prevent packaging even tho i doubt it the issue.

Thanks. I just redid a test by fully reinstalling Unreal, taking the default blank template and same issue. Revision Control is disabled, no extra plugin installed.
What’s strange too, is that during compilation 2 Unreal process were created on top of the Editor and Log window processes, and don’t close.

When I kill one of the hanged processes, then the packaging status displayes failed immediately and I’m getting this in the log:

==============================================================================
Cook failed.
(see /Users/laurent/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt for full exception trace)

CommandletException: Editor terminated with exit code 1 while running Cook for /Users/laurent/Documents/Unreal Projects/MyProject/MyProject.uproject; see log /Users/laurent/Library/Logs/Unreal Engine/LocalBuildLogs/Cook-2024.09.20-09.30.10.txt
   at AutomationTool.CommandUtils.FinishRunCommandlet(FileReference ProjectName, String Commandlet, DateTime StartTime, IProcessResult RunResult, String LocalLogFile, String& DestLogFile, UInt32 ErrorLevel) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/AutomationUtils/CommandletUtils.cs:line 472
   at AutomationTool.CommandUtils.CookCommandlet(FileReference ProjectName, String UnrealExe, String[] Maps, String[] Dirs, String InternationalizationPreset, String[] CulturesToCook, String TargetPlatform, String Parameters) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/AutomationUtils/CommandletUtils.cs:line 93
   at AutomationScripts.Project.Cook(ProjectParams Params) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/Scripts/CookCommand.Automation.cs:line 295Wrapped by AutomationException: Cook failed.
   at AutomationScripts.Project.Cook(ProjectParams Params) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/Scripts/CookCommand.Automation.cs:line 305
   at BuildCookRun.DoBuildCookRun(ProjectParams Params) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/Scripts/BuildCookRun.Automation.cs:line 235
   at BuildCookRun.ExecuteBuild() in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/Scripts/BuildCookRun.Automation.cs:line 43
   at AutomationTool.BuildCommand.Execute() in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/AutomationUtils/BuildCommand.cs:line 345
   at AutomationTool.BuildCommand.ExecuteAsync() in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/AutomationUtils/BuildCommand.cs:line 354
   at AutomationTool.Automation.ExecuteAsync(List`1 CommandsToExecute, Dictionary`2 Commands) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/AutomationUtils/Automation.cs:line 270
   at AutomationTool.Automation.ProcessAsync(ParsedCommandLine AutomationToolCommandLine, StartupTraceListener StartupListener, HashSet`1 ScriptModuleAssemblies) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/AutomationTool/AutomationUtils/Automation.cs:line 164
==============================================================================