# How to disable Hololens and Mac platforms on Windows

**URL:** <https://forums.unrealengine.com/t/how-to-disable-hololens-and-mac-platforms-on-windows/492608>\
**Category:** C++\
**Tags:** MAC, unreal-engine, Engine-Source-Code, GitHub, Platform, UE4-26, question, Hololens\
**Created:** [January 30, 2022, 8:59pm UTC](https://forums.unrealengine.com/t/how-to-disable-hololens-and-mac-platforms-on-windows/492608 "2022-01-30T20:59:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![phx-abyrd-2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phx-abyrd-2](https://forums.unrealengine.com/u/phx-abyrd-2)\
**Post date:** [January 30, 2022, 8:59pm UTC](https://forums.unrealengine.com/t/how-to-disable-hololens-and-mac-platforms-on-windows/492608/1 "2022-01-30T20:59:25Z")

</div>

I notice that by default the generated project files on Windows contain platforms for Hololens and Mac.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/a/2caa8b1c396f7bb8cd75c16f108520296f3f970a.png)

I have no need for these platforms and I’d like to keep my project files as light as possible, both so generating them is faster and to eliminate any confusion about what is actually being used.

How can I disable these platforms?

The Hololens support in UnrealBuildTool checks an environment variable to see if the Hololens SDK is installed. Which it is because it comes with the Windows SDK (or at least that’s what is being checked here). Interestingly, there’s a bug in the code here. There’s an array of registry keys to check, but the actual check is using a single hard coded string rather than the array. So it’s just checking the same location multiple times. This is in HoloLensPlatformSDK::HoloLensPlatformSDK().

MacPlatformSDK on the other hand appears to just be hard coded to always claim the SDK is valid. But why? MacPlatformSDK::HasRequiredManualSDKInternal().

---

<div class="post-metadata">

**Author:** ![CtnDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ctndev/32/1133321_2.png) [@CtnDev](https://forums.unrealengine.com/u/CtnDev)\
**Post date:** [January 30, 2022, 10:00pm UTC](https://forums.unrealengine.com/t/how-to-disable-hololens-and-mac-platforms-on-windows/492608/2 "2022-01-30T22:00:17Z")

</div>

why you need to disable? It has nothing to do with your solution.

---

<div class="post-metadata">

**Author:** ![Ares500](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ares500](https://forums.unrealengine.com/u/Ares500)\
**Post date:** [November 23, 2022, 8:53pm UTC](https://forums.unrealengine.com/t/how-to-disable-hololens-and-mac-platforms-on-windows/492608/3 "2022-11-23T20:53:32Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/6/d/26d6fb45ecdb3d3d25741bd804fec434c5a9d74a.png)  
I have a problem with this as well. Even though im trying to build just for windows it says its trying to build for MAC platform even though i have it disabled.  
**strong text**  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/c/0/9c0527a62990a2ef4f2217bd0aa926ef5da1c7d1.png)

---

<div class="post-metadata">

**Author:** ![MikeRPG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MikeRPG](https://forums.unrealengine.com/u/MikeRPG)\
**Post date:** [October 11, 2023, 4:00am UTC](https://forums.unrealengine.com/t/how-to-disable-hololens-and-mac-platforms-on-windows/492608/4 "2023-10-11T04:00:51Z")

</div>

It’s causing my build to crash, so would be great if I could disable it.

---

<div class="post-metadata">

**Author:** ![mdawn845](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdawn845](https://forums.unrealengine.com/u/mdawn845)\
**Post date:** [August 1, 2026, 11:02am UTC](https://forums.unrealengine.com/t/how-to-disable-hololens-and-mac-platforms-on-windows/492608/5 "2026-08-01T11:02:36Z")

</div>

Got any solutions?
