Hello! Tried to make Installed Build on MacOS, but everytime on different steps it failed with this error:
AutomationException: Build products from a previous step have been modified:
File date/time mismatch for Engine/Intermediate/Build/Mac/x86_64/UnrealClient/Shipping/Engine/Module.Engine.10_of_93.cpp.o - was 14.02.2023 00:44:32, expected 13.02.2023 22:12:24, TimeDifference 02:32:08
Hey @AmadeuSpeedyPS
Have you reset your time on macOS manually? It could be that the software is expecting a different time than what your OS is providing. Maybe a manual change to the date/time provided by the error will help?
-Zen
I have the same case in Mac x86(Intel, 2 different hardware) and Mac m1
In my experience this was broken in version 5.1 of the Unreal Engine, in 5.0 it works well. Version 5.1.1 have some looks close fixes for this - but does not fix this case.
All failes if I set options
-set:WithClient=true -set:WithServer=true
without these options - installed builds and works well, but without server/client targets(of course).
For an absolutely clean build, I even completely formatted one of the experimental Mac’s - the same result.
I have submitted a bug report with full logs in Unreal Bug Submissions, Case # 00532051, and wait for the answer.
I know this is not a good solution, but I replaced the AutomationException with a warning in the BuildGraph.cs and TempStorage.cs files. Here is the code, in case it helps someone else when building for MacOS.
ERROR: File date/time mismatch for Engine/Intermediate/Build/BuildRules/UE4ProgramRules.pdb - was 8/27/2023 5:31:39 PM, expected 8/27/2023 5:31:01 PM, TimeDifference 00:00:37.1985937
ERROR: File date/time mismatch for Engine/Intermediate/Build/BuildRules/UE4ProgramRulesManifest.json - was 8/27/2023 5:31:39 PM, expected 8/27/2023 5:31:01 PM, TimeDifference 00:00:37.1985920
ERROR: Files have been modified
(see C:\ProjectGilgamesh\UE4-TK\Engine\Programs\AutomationTool\Saved\Logs\Log.txt for full exception trace)
Running into the same issue on Windows x64 on 4.26.2 when trying to package the engine for a binary build, verified it wasn’t some other program interfering with the build files, just seems like some kind of issue with the build process itself, as the build seems to create the files (\Intermediate\Build\BuildRules\UE4ProgramRules.pdb etc for me) and then gets tripped up by the timestamp issue, possibly due to some kinda very low-level hard drive interaction issue (NVME Samsung SSD 970 EVO plus, my main OS drive)
In my case:
Building the Installed Build for UE 5.3 on External SSD (Sources and destination on SSD) on Mac (M1 pro) the solution was in formatting the SSD from exFat to APFS.
May be this will be helpful for someone