[mac] Library not loaded: @rpath/UE4Editor-ProceduralMeshComponent.dylib

I can’t open my project, which fails at around 70% with an error saying “The game module GAME could not be loaded”

In the logfile I see:

[2016.09.19-08.40.32:093][ 0]LogMoviePlayer: FAVMoviePlayer ctor…
[2016.09.19-08.40.32:241][ 0]LogUdpMessaging: Initializing bridge on interface 0.0.0.0:0 to multicast group 230.0.0.1:6666.
[2016.09.19-08.30.52:320][ 0]LogMac:Warning: dlopen failed: dlopen(/Volumes/Data/Unreal Projects/VRProject/Binaries/Mac/UE4Editor-VRProject-2767.dylib, 5): Library not loaded: @rpath/UE4Editor-ProceduralMeshComponent.dylib
Referenced from: /Volumes/Data/Unreal Projects/VRProject/Binaries/Mac/UE4Editor-VRProject-2767.dylib
Reason: image not found
[2016.09.19-08.30.52:320][ 0]LogModuleManager:Warning: ModuleManager: Unable to load module ‘/Volumes/Data/Unreal Projects/VRProject/Binaries/Mac/UE4Editor-VRProject-2767.dylib’ because the file couldn’t be loaded by the OS.

So it looks like the error is related to ProceduralMeshComponent.dylib - I’m not sure how to resolve this though!

I already tried rebuilding the xcode project (click on uproject, Services->Generate XCode Project). But the project builds okay in Xcode - unreal editor won’t start.

My Build.cs file looks like

public class VRProject : ModuleRules
{
	public VRProject(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ProceduralMeshComponent", "HTTP", "Json" });

		PrivateDependencyModuleNames.AddRange(new string[] {  });

		// Uncomment if you are using Slate UI
		// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
		
		// Uncomment if you are using online features
		// PrivateDependencyModuleNames.Add("OnlineSubsystem");

		// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
	}
}

I’m utterly baffled by this. It WAS working for me, and now it isn’t.

I’ve done the following:

  • uninstalled unreal 4.13 and reinstalled it (from the launcher).
  • completely uninstalled unreal and re-installed it
  • re-installed 4.12 (which I think is where it was working) and shifted the project version back to 4.12
  • wiped the project and re-downloaded it from a version which was working.

Nothing works. I’m so frustrated! BTW the ‘missing’ file exists:
/Users/Shared/UnrealEngine/4.12/Engine/Plugins/Runtime/ProceduralMeshComponent/Binaries/Mac/UE4Editor-ProceduralMeshComponent.dylib

Any help would be VERY gratefully received.

Just a little bit more - I removed all references to ProceduralMeshComponent in my code and removed it from Build.cs. This works.

Then I add it back to Build.cs:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ProceduralMeshComponent", "HTTP", "Json" });

and again I get the error.

I’m flailing around here, but I tried to add:
PublicLibraryPaths.Add("/Users/Shared/UnrealEngine/4.12/Engine/Plugins/Runtime/ProceduralMeshComponent/Binaries/Mac/");

This also didn’t work.

I’ve been having this Error for a while too. Nothing so far has worked to fix it. Did the same as you. Had to develop on Windows :frowning:

It’s so strange. On my (mac) desktop I don’t get it, whilst on my laptop I do. I’ve uninstalled and re-installed unreal multiple times with no luck. I just can’t work out what it could be, nor how to debug it. :frowning: