I am quite frustrated with this annoying error for the past two days, I tried posting in the udemy Q&A and have got no response, tried googling solutions and nothing seems to be working!
I cant open any C++ project with unreal. None of the bull and cow assets or my own project.
Here is what the error message says:
Running Mono…
Found mono via known Mono.framework path
Running installed mono, version: Mono JIT compiler version 6.10.0.104 (2019-12/5d03a6fe116 Wed Apr 29 20:51:09 EDT 2020)
~/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine ~/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Binaries/Mac
Creating makefile for EscapeEditor (no existing makefile)
@progress push 5%
Parsing headers for EscapeEditor
Running UnrealHeaderTool “/Users/vikrant_rajan/Documents/Unreal Projects/Escape/Escape.uproject” “/Users/vikrant_rajan/Documents/Unreal Projects/Escape/Intermediate/Build/Mac/EscapeEditor/Development/EscapeEditor.uhtmanifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -Unattended -WarningsAsErrors -installed
Reflection code generated for EscapeEditor in 7.5945243 seconds
@progress pop
Performing 7 actions (5 in parallel)
[1/7] Compile SharedPCH.Engine.h
In file included from /Users/vikrant_rajan/Documents/Unreal Projects/Escape/Intermediate/Build/Mac/EscapeEditor/Development/Engine/SharedPCH.Engine.h:206:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:541:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Engine/StaticMesh.h:23:
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:478:24: error: loop variable ‘EdgeVertexID’ of type ‘const FVertexID’ creates a copy from type ‘const FVertexID’ [-Werror,-Wrange-loop-analysis]
for( const FVertexID EdgeVertexID : Edge.VertexIDs )
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:478:8: note: use reference type ‘const FVertexID &’ to prevent copying
for( const FVertexID EdgeVertexID : Edge.VertexIDs )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:550:32: error: loop variable ‘VertexInstanceID’ of type ‘const FVertexInstanceID’ creates a copy from type ‘const FVertexInstanceID’ [-Werror,-Wrange-loop-analysis]
for( const FVertexInstanceID VertexInstanceID : VertexInstanceIDs )
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:550:8: note: use reference type ‘const FVertexInstanceID &’ to prevent copying
for( const FVertexInstanceID VertexInstanceID : VertexInstanceIDs )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:653:22: error: loop variable ‘VertexConnectedEdgeID’ of type ‘const FEdgeID’ creates a copy from type ‘const FEdgeID’ [-Werror,-Wrange-loop-analysis]
for( const FEdgeID VertexConnectedEdgeID : VertexArray[ VertexID0 ].ConnectedEdgeIDs )
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:653:8: note: use reference type ‘const FEdgeID &’ to prevent copying
for( const FEdgeID VertexConnectedEdgeID : VertexArray[ VertexID0 ].ConnectedEdgeIDs )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:682:32: error: loop variable ‘VertexInstanceID’ of type ‘const FVertexInstanceID’ creates a copy from type ‘const FVertexInstanceID’ [-Werror,-Wrange-loop-analysis]
for( const FVertexInstanceID VertexInstanceID : VertexArray[ VertexID ].VertexInstanceIDs )
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:682:8: note: use reference type ‘const FVertexInstanceID &’ to prevent copying
for( const FVertexInstanceID VertexInstanceID : VertexArray[ VertexID ].VertexInstanceIDs )
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
&
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:695:22: error: loop variable ‘EdgeID’ of type ‘const FEdgeID’ creates a copy from type ‘const FEdgeID’ [-Werror,-Wrange-loop-analysis]
for( const FEdgeID EdgeID : ConnectedEdgeIDs )
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/MeshDescription/Public/MeshDescription.h:695:8: note: use reference type ‘const FEdgeID &’ to prevent copying
for( const FEdgeID EdgeID : ConnectedEdgeIDs )
^~~~~~~~~~~~~~~~~~~~~~
&
In file included from /Users/vikrant_rajan/Documents/Unreal Projects/Escape/Intermediate/Build/Mac/EscapeEditor/Development/Engine/SharedPCH.Engine.h:206:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:553:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Animation/Skeleton.h:16:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Animation/SmartName.h:10:
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Core/Public/UObject/AnimPhysObjectVersion.h:49:3: warning: declaration shadows a variable in the global namespace [-Wshadow]
VersionPlusOne,
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Engine/StaticMesh.h:450:2: note: previous declaration is here
VersionPlusOne,
^
In file included from /Users/vikrant_rajan/Documents/Unreal Projects/Escape/Intermediate/Build/Mac/EscapeEditor/Development/Engine/SharedPCH.Engine.h:206:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:609:
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Engine/NetDriver.h:885:3: warning: declaration shadows a variable in the global namespace [-Wshadow]
Default,
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Materials/MaterialFunctionInterface.h:25:2: note: previous declaration is here
Default,
^
In file included from /Users/vikrant_rajan/Documents/Unreal Projects/Escape/Intermediate/Build/Mac/EscapeEditor/Development/Engine/SharedPCH.Engine.h:206:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:614:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h:12:
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/SkeletalMeshTypes.h:62:3: warning: declaration shadows a variable in the global namespace [-Wshadow]
VersionPlusOne,
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Engine/StaticMesh.h:450:2: note: previous declaration is here
VersionPlusOne,
^
In file included from /Users/vikrant_rajan/Documents/Unreal Projects/Escape/Intermediate/Build/Mac/EscapeEditor/Development/Engine/SharedPCH.Engine.h:206:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:614:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h:12:
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/SkeletalMeshTypes.h:83:3: warning: declaration shadows a variable in the global namespace [-Wshadow]
VersionPlusOne,
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Engine/StaticMesh.h:450:2: note: previous declaration is here
VersionPlusOne,
^
In file included from /Users/vikrant_rajan/Documents/Unreal Projects/Escape/Intermediate/Build/Mac/EscapeEditor/Development/Engine/SharedPCH.Engine.h:206:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/EngineSharedPCH.h:614:
In file included from /Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Components/SkeletalMeshComponent.h:12:
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Public/SkeletalMeshTypes.h:104:3: warning: declaration shadows a variable in the global namespace [-Wshadow]
VersionPlusOne,
^
/Users/vikrant_rajan/Documents/Unreal/Unreal_System_Files/UE_4.22/Engine/Source/Runtime/Engine/Classes/Engine/StaticMesh.h:450:2: note: previous declaration is here
VersionPlusOne,
^
5 warnings and 5 errors generated.