Unreal ARKit on XCode: UnrealLightmass scheme build error


Regarding the Unreal ARKit pulled from github:

When trying to build the UnrealLightmass scheme, I’ve received this compile error:

Programs/UnrealLightmass/Private/LightmassCore/Misc/LMStats.h:11:27: error: definition of builtin function ‘__rdtsc’

I believe the error is similar to this one: https://forums.unrealengine.com/showthread.php?146620-Error-while-making-Unreal-Engine-from-github-in-Ubuntu-Linux but in my case it’s in Xcode.

Anyone knows how to fix this?

Never mind, apparently I have to download the zip file instead of pulling it from the repo.