Program.Main: ERROR: Exception in AutomationUtils.Automation: Game target not found. Game target is required with -cook or -cookonthefly

Hi devs,

I have been following the tutorial: [TUTORIAL][DRAFT] Building Dedicated Server on Mac - Community & Industry Discussion - Epic Developer Community Forums

However, after reaching the step to create UAT build, I keep getting the following error:

Program.Main: ERROR: Exception in AutomationUtils.Automation: Game target not found. Game target is required with -cook or -cookonthefly

I have checked everything including the *Server.Target.cs (where * is my game name) and changed the names for everything accordingly, but I am not able to proceed.

I have also tried running the UAT build from UFE by following the: Is dedicated server building supported for Macs? - Programming & Scripting - Epic Developer Community Forums

but I have exact same error.

The command I am trying to run is: ./Engine/Build/BatchFiles/RunUAT.command BuildCookRun -project=/Users/jeff/dev/SniperArena/SniperArena.uproject -noP4 -clientconfig=Development -serverconfig=Development -utf8output -platform=Mac -server -serverplatform=Mac -targetplatform=Mac -build -cook -unversionedcookedcontent -compressed -stage -package -cmdline=map-002 -Messaging -prereqs -archive -archivedirectory=/output/path -pak -prereqs

I have changed the values to have my Game path, my archive directory path and my map name.

However, nothing I do works.

Any help would be appreciated.