Packaging error

Hello, I am trying to package my project. i reinstalled Visual Studio and disabled the datasmith importer , plastic SCM, and VisionOS plugins and it keeps failing to package. Here is the text from the output log. Any advice is appreciated.

ProjectHelp_text.txt (225.1 KB)

Hello there @Juliedesigns!

Investigating through your extended log, and checking with my peers, I think the key lines are the following:

Visual Studio 2022 compiler version 14.44.35215 is not a preferred version.
Please use the latest preferred version 14.38.33130
ConcurrentLinearAllocator.h(31): error C4668: '__has_feature' is not defined
ConcurrentLinearAllocator.h(31): error C4067: unexpected tokens following preprocessor directive

The crash is not coming from the plugins, but the compiler. The “__has_feature” macro only exists in Clang, not MSVC. Meaning, the engine is having a compatibility clash. UE is looking for 14.38, not 14.44. In order to resolve the issue, please take the following steps:

  • Open Visual Studio Installer
  • Modify your VS 2022 installation
  • Access “Individual Components”
  • Under “Compilers, build tools, and runtimes”
  • Install “MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8)”
  • Uncheck the newer 14.44 version, if possible
  • Add this to your project’s “DefaultEngine.ini”:
[WindowsTargetPlatform]
CompilerVersion=14.38.33130
  • Go to your project’s directory and delete folders Intermediate/, Binaries/, Saved/, in order to force a cache clear
  • Right-click project.uproject > “Generate Visual Studio project files”
  • Try packaging again