When you have a C++ project that is created on a Mac, if you open that project from its current location in the Windows version of UE4, then go back to the Mac and try to re-generate the Xcode project, you get errors [console log at end of post].
It’s relatively easy to fix - just delete the ._ProjectName.Build.cs
file, however since that file is invisible on a Mac, the solution may not be immediately obvious to some users. Ideally, the generate service should know to ignore files that begin with ._
when compiling, since they contain Visual Studio-specific metadata and the file extension can’t reliably be used to know how to parse the data.
Discovering modules, targets and source code for game...
Errors detected while compiling /Volumes/GAMEDEV/Animations/Intermediate/Build/BuildRules/RocketUE4ModuleRules.dll:
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,2) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,3) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,4) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,6) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,8) : error CS1525: Unexpected symbol `Mac'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,26) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,37) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,38) : error CS1056: Unexpected character `�'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,42) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,45) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,46) : error CS1056: Unexpected character `�'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,49) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,50) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,92) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,95) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,96) : error CS1056: Unexpected character `�'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,100) : error CS1056: Unexpected character `�'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,104) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,120) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,124) : error CS1056: Unexpected character `�'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,128) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,131) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `�'
/Volumes/GAMEDEV/Animations/Source/Animations/._Animations.Build.cs(1,255) : error CS1056: Unexpected character `�'
UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files