Building on OS X: Failed to produce item: UE4Editor-UnreadEd.dylib

Hi,

I’m trying to build the 4.4 release on OS X but have been hitting the following error:

ERROR: UBT ERROR: Failed to produce item: /Users/Shared/UnrealEngineSrc/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-UnrealEd.dylib
Cumulative action seconds (1 processors): 0.00 building projects, 11618.25 compiling, 0.00 creating app bundles, 0.00 generating debug info, 41.61 linking, 0.00 other
UBT execution time: 12057.50 seconds

Source & deps. were downloaded from the 4.4 branch on GitHub.

buildbox109:UnrealEngineSrc user$ git branch -va
* 4.4                   81f5872 Updated README.md
  remotes/origin/4.0    8aaf13e Unreal Engine EULA update
  remotes/origin/4.1    1287e6e Unshelved from pending changelist '2104481':
  remotes/origin/4.2    4225a79 Updated README.MD for 4.2.1 release
  remotes/origin/4.3    bfdd1c0 Updated EULA
  remotes/origin/4.4    81f5872 Updated README.md
  remotes/origin/HEAD   -> origin/4.4
  remotes/origin/master b8c7941 Added horizontal scrolling to the output log.

I’ve tried to build on three different Macs including a fresh install of 10.9.4 Mavericks (+Xcode) in a VM.

Build log:

buildbox109:UnrealEngineSrc user$ ./Engine/Build/BatchFiles/Mac/Build.sh UE4Editor macosx Development
Setting up Mono
Building UBT...
	 0 Error(s)
Building UE4Editor...
2014-08-16 19:31:15.602 defaults[840:507] 
The domain/default pair of (/Users/user/Library/Preferences/com.apple.dt.Xcode, IDEBuildOperationMaxNumberOfConcurrentCompileTasks) does not exist
Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe UE4Editor Mac Development -deploy 
Compiling with Mac SDK 10.9
Building UnrealHeaderTool...
Compiling with Mac SDK 10.9
Performing 20 actions (max 1 parallel jobs)
[1/20] Compile Core.h
...
[19/20] Link UnrealHeaderTool-ScriptGeneratorPlugin.dylib
Fixing dylib dependencies for UnrealHeaderTool
-------- End Detailed Actions Stats -----------------------------------------------------------
Cumulative action seconds (1 processors): 0.00 building projects, 221.30 compiling, 0.00 creating app bundles, 0.00 generating debug info, 3.15 linking, 0.00 other
UBT execution time: 231.32 seconds
Parsing headers for UE4Editor
Reflection code generation finished for UE4Editor and took 11.033
Performing 634 actions (max 1 parallel jobs)
[1/634] Compile Core.h
...
[114/634] Link UE4Editor-SlateReflector.dylib
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libLowLevelPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libLowLevelClothPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysX3PROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysX3CharacterKinematicPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysX3ExtensionsPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysX3CookingPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysX3CommonPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysX3VehiclePROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPxTaskPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysXVisualDebuggerSDKPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPhysXProfileSDKPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libPvdRuntimePROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libSceneQueryPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/PhysX-3.3/lib//osx64/libSimulationControllerPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/APEX-1.3/lib/osx64/libApexCommonPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/APEX-1.3/lib/osx64/libApexFrameworkPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/APEX-1.3/lib/osx64/libApexSharedPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/APEX-1.3/lib/osx64/libAPEX_DestructiblePROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/APEX-1.3/lib/osx64/libAPEX_ClothingPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/APEX-1.3/lib/osx64/libAPEX_LegacyPROFILE.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/PhysX/APEX-1.3/lib/osx64/libAPEX_LoaderPROFILE.a'
[115/634] Link UE4Editor-Kismet.dylib
...
[453/634] Link UE4Editor-PerforceSourceControl.dylib
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/Perforce/p4api-2014.1/lib/mac/libclient.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/Perforce/p4api-2014.1/lib/mac/librpc.a'
clang: error: no such file or directory: '/Users/Shared/UnrealEngineSrc/Engine/Source/ThirdParty/Perforce/p4api-2014.1/lib/mac/libsupp.a'
[454/634] Link UE4Editor-NetworkFileSystem.dylib
...
[481/634] Link UE4Editor
-------- End Detailed Actions Stats -----------------------------------------------------------
ERROR: UBT ERROR: Failed to produce item: /Users/Shared/UnrealEngineSrc/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-UnrealEd.dylib
Cumulative action seconds (1 processors): 0.00 building projects, 11618.25 compiling, 0.00 creating app bundles, 0.00 generating debug info, 41.61 linking, 0.00 other
UBT execution time: 12057.50 seconds

So far I have not found a way to view more verbose log output. Any help is appreciated.

Hey dexter0,

I’ve let the developers know you’re experiencing this issue, and I will let you know what they find as soon as I can. Thanks for your patience!

Hey dexter0,

It looks like the Required_2of2 dependencies did not get installed properly. On the Mac, you need to make sure you take the 3 folders (Templates, Samples, and Engine) out of the Required_2of2 folder before Option+dragging them into the UnrealEngine folder.

Hi Ben,

I am having the same error even though I am precisely following the steps for Mac specified here:
https://github.com/NvPhysX/UnrealEngine/tree/WaveWorks

Install GitHub for Mac then fork and
clone our repository. To use Git from
the Terminal, see the Setting up Git
and Fork a Repo articles. If you’d
rather not use Git, use the ‘Download
ZIP’ button on the right to get the
source directly.

Install the latest version of Xcode.

Open your source folder in Finder and
double-click on Setup.command to
download binary content for the
engine. You can close the Terminal
window afterwards.

If you downloaded the source as a .zip
file, you may see a warning about it
being from an unidentified developer
(because .zip files on GitHub aren’t
digitally signed). To work around it,
right-click on Setup.command, select
Open, then click the Open button.

In the same folder, double-click
GenerateProjectFiles.command. It
should take less than a minute to
complete.

Load the project into Xcode by
double-clicking on the UE4.xcodeproj
file. Select the UE4Editor - Mac for
My Mac target in the title bar, then
select the ‘Product > Build’ menu
item. Compiling may take anywhere
between 15 and 40 minutes, depending
on your system specs.

After compiling finishes, select the
‘Product > Run’ menu item to load the
editor.

are there any other steps I am missing?

Thanks a lot,

Hi clcl,

Which version of the engine are you attempting this with? Which OS version do you use, and which Xcode version?