# Cannot build on Mac Ventura with Xcode 14

**URL:** <https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665>\
**Category:** Mobile\
**Tags:** xcode, MAC, unreal-engine, question\
**Created:** [April 3, 2023, 1:27am UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665 "2023-04-03T01:27:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TangoAlpha2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TangoAlpha2](https://forums.unrealengine.com/u/TangoAlpha2)\
**Post date:** [April 3, 2023, 1:27am UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/1 "2023-04-03T01:27:45Z")

</div>

With Apple’s new policy regarding their App Store submissions, I upgraded my Mac to the new Ventura OS and Xcode 14. Unfortunately I cannot get the source build for either 4.27 or 5.0 (or 5.1.1) to build at all in Xcode 14.

Has anyone been able to get it to work? I have an intel processor MacBook Pro.

I have the same project on a separate partition of my Mac running Monterey and Xcode 13 and it runs perfectly fine.

---

<div class="post-metadata">

**Author:** ![JohnHotShot](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JohnHotShot](https://forums.unrealengine.com/u/JohnHotShot)\
**Post date:** [April 3, 2023, 7:30am UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/2 "2023-04-03T07:30:18Z")

</div>

I am having the same issue. I think my mac updated automatically over the weekend and this morning it won’t build anymore.  
It has started with this error:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/6/d06354943d34cfdeaa701a898e086c9b67ac07a4.jpeg)  
Saying that the sdk is not found. I’ve downloaded the 13.1 sdk from here: [Release 13.1 · joseluisq/macosx-sdks · GitHub](https://github.com/joseluisq/macosx-sdks/releases/tag/13.1) and placed it in the right place.  
Now I am getting this error in multiple files:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/b/43b10d7f53fa29f5e3d8456fb8305bcdf95e9ca1.png)  
`0>/Users/john/Repos/UnrealEngine/Engine/Source/Runtime/Core/Public/UObject/NameTypes.h:541:10: Error : use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] `  
And  
`0>/Users/john/Repos/UnrealEngine/Engine/Source/Runtime/Core/Public/UObject/NameTypes.h:536:10: Error : use of bitwise '&' with boolean operands [-Werror,-Wbitwise-instead-of-logical]`  
I’ve tried manually fixing this for this file but it kept appearing in other files as well.

I am using MacOS 13.2.1 (22D68) with xcode 14 as well.  
Does anyone know how to supress these errors?

Edit:  
Adding this in `Engine/Source/Programs/UnrealBuildTool/Platform/Mac/MacToolChain.cs` inside the function `string GetCompileArguments_Global(CppCompileEnvironment CompileEnvironment)`

```auto
			if (GetClangVersion().Major >= 14)
			 {
				Result += " -Wno-error=bitwise-instead-of-logical";
				Result += " -Wno-error=deprecated-declarations";
				Result += " -Wno-error=unqualified-std-cast-call";
			 }	

```

Seems to get read of the compiler errors, but I’ve got a new error now.

`Undefined symbols for architecture x86_64: "bool UPrimitiveComponent::ConvertRotationOverlapsToCurrentOverlaps<TInlineAllocator<3u, TSizedDefaultAllocator<32> > >(TArray<FOverlapInfo, TInlineAllocator<3u, TSizedDefaultAllocator<32> > >&, TArrayView<FOverlapInfo const, int> const&)", referenced from: TOptional<TArrayView<FOverlapInfo const, int> > FScopedMovementUpdate::GetOverlapsAtEnd<TInlineAllocator<3u, TSizedDefaultAllocator<32> > >(UPrimitiveComponent&, TArray<FOverlapInfo, TInlineAllocator<3u, TSizedDefaultAllocator<32> > >&, bool) const in Module.Engine.12_of_48.cpp.o ld: symbol(s) not found for architecture x86_64 0>clang: Error : linker command failed with exit code 1 (use -v to see invocation)`

---

<div class="post-metadata">

**Author:** ![mixer76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mixer76](https://forums.unrealengine.com/u/mixer76)\
**Post date:** [April 24, 2023, 3:04pm UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/3 "2023-04-24T15:04:47Z")

</div>

@JohnHotShot  
Thank you for sharing your fix! It works! However, I also encountered the linker problem you mentioned. Have you found a solution to the linker problem? Thank you again!

---

<div class="post-metadata">

**Author:** ![kdang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kdang](https://forums.unrealengine.com/u/kdang)\
**Post date:** [April 28, 2023, 7:10am UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/4 "2023-04-28T07:10:46Z")

</div>

I had the same issue.

I had the same linker problem by looking at the comments and working on it.

It was resolved by applying the fixes below.

[https://github.com/EpicGames/UnrealEngine/commit/0b07894ce453d3dab72afd037b9d7fa5fe82c090](https://github.com/EpicGames/UnrealEngine/commit/0b07894ce453d3dab72afd037b9d7fa5fe82c090)

---

<div class="post-metadata">

**Author:** ![mixer76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mixer76](https://forums.unrealengine.com/u/mixer76)\
**Post date:** [May 8, 2023, 4:22am UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/5 "2023-05-08T04:22:01Z")

</div>

@kdang Thanks for the information. I tried to apply the changes in the commit you mentioned but had no luck. Could you elaborate on your modification details? Thank you in advance!

---

<div class="post-metadata">

**Author:** ![kdang](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kdang](https://forums.unrealengine.com/u/kdang)\
**Post date:** [May 12, 2023, 10:43am UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/6 "2023-05-12T10:43:52Z")

</div>

@mixer76  
I just downloaded and applied all of the files (Mac ToolChain.cs, XcodeProject.cs) with changes applied.

[https://github.com/EpicGames/UnrealEngine/blob/0b07894ce453d3dab72afd037b9d7fa5fe82c090/Engine/Source/Programs/UnrealBuildTool/Platform/Mac/MacToolChain.cs](https://github.com/EpicGames/UnrealEngine/blob/0b07894ce453d3dab72afd037b9d7fa5fe82c090/Engine/Source/Programs/UnrealBuildTool/Platform/Mac/MacToolChain.cs)

[https://github.com/EpicGames/UnrealEngine/blob/0b07894ce453d3dab72afd037b9d7fa5fe82c090/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/Xcode/XcodeProject.cs](https://github.com/EpicGames/UnrealEngine/blob/0b07894ce453d3dab72afd037b9d7fa5fe82c090/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/Xcode/XcodeProject.cs)

And I modified the “MactoolChain.cs” file again.  
as-is :  
string GetCompileArguments\_Global(CppCompileEnvironment CompileEnvironment)  
{  
string Result = “”;  
…  
// Xcode 13.3 / Apple Clang 13.1.6 new flags  
// Apple Clang binary releases are proprietary closed source different from open source clang versions  
// See also ClangToolChain.cs in UE5  
if (GetClangVersion() \>= new Version(13, 1, 6))  
{  
Result += " -Wno-unused-but-set-variable";  
Result += " -Wno-unused-but-set-parameter";  
Result += " -Wno-ordered-compare-function-pointers";  
}

to-be :  
string GetCompileArguments\_Global(CppCompileEnvironment CompileEnvironment)  
{  
string Result = “”;  
…  
if (GetClangVersion() \>= new Version(13, 1, 6))  
{  
Result += " -Wno-unused-but-set-variable";  
Result += " -Wno-unused-but-set-parameter";  
Result += " -Wno-ordered-compare-function-pointers";  
**Result += " -Wno-error=bitwise-instead-of-logical";**  
}

I hope this helps.

---

<div class="post-metadata">

**Author:** ![mixer76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mixer76](https://forums.unrealengine.com/u/mixer76)\
**Post date:** [May 13, 2023, 10:44am UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/7 "2023-05-13T10:44:56Z")

</div>

@kdang Thanks a lot! It works! With the instructions you provided, I manged to compile and run UE 4.27.2 on my Macbook Pro 2023 (M2 Max) with macOS Ventura 13.3.1(a), Xcode 14.3. Thank you again!

---

<div class="post-metadata">

**Author:** ![TangoAlpha2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TangoAlpha2](https://forums.unrealengine.com/u/TangoAlpha2)\
**Post date:** [May 23, 2023, 3:03pm UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/8 "2023-05-23T15:03:36Z")

</div>

Thanks to everyone for the support, I have managed to build it out using a number of different methods. First, thank you @kdang for your help. That absolutely worked. However, there was a bit of debugging I had to do to make it work. But that could be because I am dumb. That said, thank you again, it did work.

Another solution that I found, that ended up working too (I built out two versions on separate Macs) was to use the 4.27 plus branch on Unreal’s GitHub. Basically follow the regular instructions for the 4.27 build in the documentation using this branch and it was done.

Again, I tried both and they both worked. Hope that helps others.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [June 22, 2023, 3:03pm UTC](https://forums.unrealengine.com/t/cannot-build-on-mac-ventura-with-xcode-14/839665/9 "2023-06-22T15:03:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
