Unable to create C++ project on mac

Hello,

I am trying to create just an empty C++ project on 4.24 on a Mac running Catalina 10.15.2.

I get the following error:

An error occurred while trying to generate project files.


Running Mono...

Found mono via known Mono.framework path
Running system mono/msbuild, version: Mono JIT compiler version 6.6.0.155 (2019-08/296a9afdb24 Thu Nov 14 06:12:25 EST 2019)
/Users/Shared/Epic Games/UE_4.24/Engine /Users/Shared/Epic Games/UE_4.24/Engine/Binaries/Mac
Discovering modules, targets and source code for project...
ERROR: Unhandled exception: Tools.DotNETCommon.JsonParseException: Unable to parse /Users/Shared/Epic Games/UE_4.24/Engine/Intermediate/Build/BuildRules/UE4RulesManifest.json: Could not find token at index 8195
         at Tools.DotNETCommon.JsonObject.Read (Tools.DotNETCommon.FileReference File) [0x0002e] in <d0521d31a6154391a380310c76ae6c6b>:0 
         at UnrealBuildTool.DynamicCompilation.RequiresCompilation (System.Collections.Generic.HashSet`1[T] SourceFiles, Tools.DotNETCommon.FileReference AssemblyManifestFilePath, Tools.DotNETCommon.FileReference OutputAssemblyPath) [0x00089] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly (Tools.DotNETCommon.FileReference OutputAssemblyPath, System.Collections.Generic.HashSet`1[T] SourceFileNames, System.Collections.Generic.List`1[T] ReferencedAssembies, System.Collections.Generic.List`1[T] PreprocessorDefines, System.Boolean DoNotCompile, System.Boolean TreatWarningsAsErrors) [0x00030] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.RulesAssembly..ctor (UnrealBuildTool.RulesScope Scope, Tools.DotNETCommon.DirectoryReference BaseDir, System.Collections.Generic.IReadOnlyList`1[T] Plugins, System.Collections.Generic.Dictionary`2[TKey,TValue] ModuleFileToContext, System.Collections.Generic.List`1[T] TargetFiles, Tools.DotNETCommon.FileReference AssemblyFileName, System.Boolean bContainsEngineModules, System.Nullable`1[T] DefaultBuildSettings, System.Boolean bReadOnly, System.Boolean bSkipCompile, UnrealBuildTool.RulesAssembly Parent) [0x00098] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.RulesCompiler.CreateEngineOrEnterpriseRulesAssembly (UnrealBuildTool.RulesScope Scope, System.Collections.Generic.List`1[T] RootDirectories, System.String AssemblyPrefix, System.Collections.Generic.IReadOnlyList`1[T] Plugins, System.Boolean bReadOnly, System.Boolean bSkipCompile, UnrealBuildTool.RulesAssembly Parent) [0x00172] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.RulesCompiler.CreateEngineRulesAssembly (System.Boolean bUsePrecompiled, System.Boolean bSkipCompile) [0x00042] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly (Tools.DotNETCommon.FileReference ProjectFileName, System.Boolean bUsePrecompiled, System.Boolean bSkipCompile) [0x0002b] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.ProjectFileGenerator.AddProjectsForAllTargets (UnrealBuildTool.PlatformProjectGeneratorCollection PlatformProjectGenerators, System.Collections.Generic.List`1[T] AllGames, System.Collections.Generic.List`1[T] AllTargetFiles, UnrealBuildTool.ProjectFile& EngineProject, UnrealBuildTool.ProjectFile& EnterpriseProject, System.Collections.Generic.List`1[UnrealBuildTool.ProjectFile]& GameProjects, System.Collections.Generic.Dictionary`2[Tools.DotNETCommon.FileReference,UnrealBuildTool.ProjectFile]& ProgramProjects) [0x001a7] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles (UnrealBuildTool.PlatformProjectGeneratorCollection PlatformProjectGenerators, System.String[] Arguments) [0x003c4] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.GenerateProjectFilesMode.Execute (Tools.DotNETCommon.CommandLineArguments Arguments) [0x00326] in <19952a9d9609447d90bbd11270a2d36a>:0 
         at UnrealBuildTool.UnrealBuildTool.Main (System.String[] ArgumentsArray) [0x002bb] in <19952a9d9609447d90bbd11270a2d36a>:0

Anyone have this issue? Any ideas?

Thanks,

-Jaime

I was able to create a project with 4.23

ERROR: Unhandled exception: Tools.DotNETCommon.JsonParseException: Unable to parse /Users/Shared/EpicGames/UE_4.24/Engine/Intermediate/Build/BuildRules/UE4RulesManifest.json: Could not find token at index 98304
at Tools.DotNETCommon.JsonObject.Read (Tools.DotNETCommon.FileReference File) [0x0002e] in :0
at UnrealBuildTool.DynamicCompilation.RequiresCompilation (System.Collections.Generic.HashSet1[T] SourceFiles, Tools.DotNETCommon.FileReference AssemblyManifestFilePath, Tools.DotNETCommon.FileReference OutputAssemblyPath) [0x00089] in <06064b8668524fbe8f731819d614f376>:0 at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssembly (Tools.DotNETCommon.FileReference OutputAssemblyPath, System.Collections.Generic.HashSet1[T] SourceFileNames, System.Collections.Generic.List1[T] ReferencedAssembies, System.Collections.Generic.List1[T] PreprocessorDefines, System.Boolean DoNotCompile, System.Boolean TreatWarningsAsErrors) [0x00030] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.RulesAssembly…ctor (UnrealBuildTool.RulesScope Scope, Tools.DotNETCommon.DirectoryReference BaseDir, System.Collections.Generic.IReadOnlyList1[T] Plugins, System.Collections.Generic.Dictionary2[TKey,TValue] ModuleFileToContext, System.Collections.Generic.List1[T] TargetFiles, Tools.DotNETCommon.FileReference AssemblyFileName, System.Boolean bContainsEngineModules, System.Nullable1[T] DefaultBuildSettings, System.Boolean bReadOnly, System.Boolean bSkipCompile, UnrealBuildTool.RulesAssembly Parent) [0x00098] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.RulesCompiler.CreateEngineOrEnterpriseRulesAssembly (UnrealBuildTool.RulesScope Scope, System.Collections.Generic.List1[T] RootDirectories, System.String AssemblyPrefix, System.Collections.Generic.IReadOnlyList1[T] Plugins, System.Boolean bReadOnly, System.Boolean bSkipCompile, UnrealBuildTool.RulesAssembly Parent) [0x00172] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.RulesCompiler.CreateEngineRulesAssembly (System.Boolean bUsePrecompiled, System.Boolean bSkipCompile) [0x00042] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.RulesCompiler.CreateTargetRulesAssembly (Tools.DotNETCommon.FileReference ProjectFile, System.String TargetName, System.Boolean bSkipRulesCompile, System.Boolean bUsePrecompiled, Tools.DotNETCommon.FileReference ForeignPlugin) [0x00014] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.UEBuildTarget.Create (UnrealBuildTool.TargetDescriptor Descriptor, System.Boolean bSkipRulesCompile, System.Boolean bUsePrecompiled) [0x0000c] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.BuildMode.CreateMakefile (UnrealBuildTool.BuildConfiguration BuildConfiguration, UnrealBuildTool.TargetDescriptor TargetDescriptor, UnrealBuildTool.ISourceFileWorkingSet WorkingSet) [0x00101] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.BuildMode.Build (System.Collections.Generic.List`1[T] TargetDescriptors, UnrealBuildTool.BuildConfiguration BuildConfiguration, UnrealBuildTool.ISourceFileWorkingSet WorkingSet, UnrealBuildTool.BuildOptions Options, Tools.DotNETCommon.FileReference WriteOutdatedActionsFile) [0x0001a] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.BuildMode.Execute (Tools.DotNETCommon.CommandLineArguments Arguments) [0x002cc] in <06064b8668524fbe8f731819d614f376>:0
at UnrealBuildTool.UnrealBuildTool.Main (System.String ArgumentsArray) [0x002bb] in <06064b8668524fbe8f731819d614f376>:0

Hello,

I was having the same issue after update Unreal to the version 4.24.3 on macOS Catalina. To fix this issue I opened the JSON file UE4RulesManifest.json you can find it in the following path

/Users/Shared/EpicGames/UE_4.24/Engine/Intermediate/Build/BuildRules/UE4RulesManifest.json

After checking the file I notice that in some part of the JSON there is a bad format

So I changed the line to the correct path and fixed the JSON format.

After fix that JSON file, now Unreal can create C++ project again.

Issue appears to be resolved on 4.24.3
I was able to create a C++ project and load in VS Code.