Include paths are off when building engine modules

I’ve integrated the engine code directly into my project and I’m trying to compile. I was getting a bunch of weird compile errors that only made sense once I noticed the path errors coming from the build files.

For example, VisionOSTargetPlatformSettings.Build.cs throws an error due to this code:

PrivateIncludePaths.AddRange(
	new string[] {
	"Developer/IOS/IOSTargetPlatformSettings/Private"
	}
);

This is because it’s resolving as main\Source\Developer\IOS\IOSTargetPlatformSettings\Private instead of main\Engine\Source\Developer\IOS\IOSTargetPlatformSettings\Private. This is happening for many, if not all, engine modules.

I have no idea why this would be happening. To my knowledge, I haven’t made any local config changes that would affect the include directories. Any help?