If the output directory was manually deleted while Delphi was open, the IDE might hold a stale reference. Or, a symbolic link/junction point may point to an invalid location.
If your project is located in a system-protected directory, Windows may block Delphi from creating new folders. Right-click your Delphi shortcut (RAD Studio). Select . Attempt to build the project again. 3. Clear Invalid Path Macros Directory Preparation Failed Delphi