# C++ Projects Fail to Build on Mac

**URL:** <https://forums.unrealengine.com/t/c-projects-fail-to-build-on-mac/2376279>\
**Category:** Getting Started & Setup\
**Tags:** Macos, unreal-engine\
**Created:** [March 5, 2025, 2:27pm UTC](https://forums.unrealengine.com/t/c-projects-fail-to-build-on-mac/2376279 "2025-03-05T14:27:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MC1RScorpion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MC1RScorpion](https://forums.unrealengine.com/u/MC1RScorpion)\
**Post date:** [March 5, 2025, 2:27pm UTC](https://forums.unrealengine.com/t/c-projects-fail-to-build-on-mac/2376279/1 "2025-03-05T14:27:36Z")

</div>

Hello, 👋

I have a question about creating a 5.5.3 C++ project on macOS for anyone who knows.

Whenever I try to create a C++ project, I get the following error:

```auto
An error occurred while trying to generate project files.

Setting up bundled DotNet SDK
/Users/Shared/EpicGames/UE_5.5/Engine/Build/BatchFiles/Mac/../../../Binaries/ThirdParty/DotNet/8.0.300/mac-arm64
Running dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -projectfiles -project=/Users/MyUserName/Documents/Unreal Projects/MyProject/MyProject.uproject -game -rocket -progress
Unhandled exception: IOException: Permission denied
Wrapped by UnauthorizedAccessException: Access to the path '/Users/MyUserName/Documents/Library/Application Support/Epic/UnrealEngine' is denied.
   at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
   at System.IO.Directory.CreateDirectory(String path)
   at EpicGames.Core.DirectoryReference.CreateDirectory(DirectoryReference location) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/Shared/EpicGames.Core/DirectoryReference.cs:line 320
   at UnrealBuildTool.XmlConfig.ReadConfigFiles(FileReference overrideCacheFile, DirectoryReference projectRootDirectory, ILogger logger) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/System/XmlConfig.cs:line 165
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /Users/build/Build/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 559

```

So it looks like Unreal doesn’t have permission to access /Library. I’ve tried giving Unreal editor, Xcode, and DotNet full disk access and I’ve tried setting the folders from /Library to /5.5 to Read & Write for the Everyone user but the error is always the same.

Blueprint projects build without issue. Both C++ and Blueprint projects build without issue in 5.4.

Any advice on how to solve this would be appreciated. 🙂

Cheers.

---

<div class="post-metadata">

**Author:** ![MC1RScorpion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MC1RScorpion](https://forums.unrealengine.com/u/MC1RScorpion)\
**Post date:** [March 6, 2025, 11:05pm UTC](https://forums.unrealengine.com/t/c-projects-fail-to-build-on-mac/2376279/2 "2025-03-06T23:05:04Z")

</div>

Okay, so it looks like unlike in previous versions of Unreal, 5.5 is trying to access a Library folder within the Documents folder instead of in the User folder.

If I set the permissions on /Documents/Library to _Read & Write_ then I can generate my project.

Is there a reason this directory was changed? 🤔

---

<div class="post-metadata">

**Author:** ![Pixoshiru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pixoshiru](https://forums.unrealengine.com/u/Pixoshiru)\
**Post date:** [March 11, 2025, 3:14am UTC](https://forums.unrealengine.com/t/c-projects-fail-to-build-on-mac/2376279/3 "2025-03-11T03:14:09Z")

</div>

I’ve been pulling whatever hair I’ve got left on my scalp on this over the last few days, and I figured it out, so in case it helps:  
Unreal looks for stuff in that User/Documents/Library folder, which adding the read/write permission wasn’t solving for me.

What did it was switching iCloud off for Documents.

It sounds obvious in hindsight, but it took me a while to think of. And once switched off, I was able to get going no problem.

Note that I was facing that issue regardless of where my project files were.

---

<div class="post-metadata">

**Author:** ![VishwaAdesara](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VishwaAdesara](https://forums.unrealengine.com/u/VishwaAdesara)\
**Post date:** [April 2, 2025, 7:30am UTC](https://forums.unrealengine.com/t/c-projects-fail-to-build-on-mac/2376279/4 "2025-04-02T07:30:23Z")

</div>

Just update your XCode version i was having the same issue…
