UnrealBuildTool issues on OSX with ._ files

Hi there,

when a project is saved on a non HFS partition on OSX Unreal Build Tool often fails to generate project files and/or build the project. This is due to the fact that OSX saves resource attributes on non HFS partitions in files on the disk instead of a section in the partition table. This makes the engine unable to compile code or generate project files, resulting in errors like the following:

ERROR: Source file "/Volumes/Development/Game Development/Unreal/MyProject/Plugins/MyPlugin/Source/MyPlugin/Public/._MyFile.cpp" is not including any headers.  
We expect all modules to include a header file for precompiled header generation.  Please add an #include statement.

A temporary solution for this is to run

dot_clean .

prior to generating project files and building with Xcode. This needs to be done everytime OSX touches the file and generates an attribute store on disk.

More information on this incredibly annoying OSX specific behavior can be found here: http://apple.stackexchange.com/questions/14980/why-are-dot-underscore-files-created-and-how-can-i-avoid-them

A simple solution would be to exclude files matching “._.” from the unreal build tool.

Hello its_manny,

Thank you for reporting this issue. I’ve placed a bug report in for the issue under the number UE-28879. I’ll be sure to update you on its progress whenever any changes are made.

Have a nice day!

As this wasn’t fixed in 4.11 and I haven’t seen a fix in any of the other branches I have submitted a pull request that fixes this issue.

.com/EpicGames/UnrealEngine/pull/2266

I’m having the same problem. I worked on the project on windows and mac and am having this error when I try to make the package ("._"). I do not know how to solve the problem, could you help me?

I’m having the same problem. I worked on the project on windows and mac and am having this error when I try to make the package ("._"). I do not know how to solve the problem, could you help me?