Can't build c++ project on Mac

Hi,

I am new to unreal 5, so I’m sorry if this is a stupid question but I really couldn’t find out the way to solve it.

When I tried to create a new C++ project, it get the following error message:

“ERROR: Unhandled exception: System.UnauthorizedAccessException: Access to the path ‘/Users/myusername/.config/Unreal Engine/UnrealBuildTool’ is denied.
—> System.IO.IOException: Permission denied
— End of inner exception stack trace —
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at EpicGames.Core.DirectoryReference.CreateDirectory(DirectoryReference Location) in /Users/build/Build/++UE5/Sync/Engine/Source/Programs/Shared/EpicGames.Core/DirectoryReference.cs:line 291
at UnrealBuildTool.XmlConfig.CreateDefaultConfigFile(FileReference Location) in /Users/build/Build/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/XmlConfig.cs:line 307
at UnrealBuildTool.XmlConfig.get_InputFiles() in /Users/build/Build/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/XmlConfig.cs:line 269
at UnrealBuildTool.XmlConfig.ReadConfigFiles(FileReference OverrideCacheFile) in /Users/build/Build/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/XmlConfig.cs:line 101
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /Users/build/Build/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 541”

My attempt:

I thought this was because the access permission was ‘read only’ but this was not fixed even after I’ve given the full ‘read and write’ permission to all files in the above mentioned directories. And this happened with unreal 5.1 and 4.27 as well. The engine is launched via the epic launcher.

My hardware

Macbook pro with Arm64 M1 pro.

Could someone please help!

The error message you’re seeing suggests that Unreal Build Tool (UBT) is unable to create a directory at the specified path because it doesn’t have the necessary permissions. One potential solution is to try running UBT with administrator permissions. You can do this by launching the Epic Games Launcher as an administrator.

Another solution could be to try running the command in the terminal. You can do this by opening the terminal, navigating to the directory where you want to create the project, and then running the command “UnrealEngine/Engine/Build/BatchFiles/Mac/Build.sh YourProjectName”

It is also possible that the problem is related to the path of the directory, this could be a bug related to the new architecture of the M1 chip, you could try creating the project on a different location, or creating the project via the editor instead of command line.

If none of the above solutions work, it’s possible that there is a bug in the version of Unreal Engine you’re using that is preventing it from working correctly on Macs with M1 processors.

same issue. Did you solved this?