# Linking error in UnrealEngine Editor v5.4

**URL:** <https://forums.unrealengine.com/t/linking-error-in-unrealengine-editor-v5-4/1805946>\
**Category:** C++\
**Tags:** linker, metal, unreal-engine, linking, question\
**Created:** [April 16, 2024, 6:43am UTC](https://forums.unrealengine.com/t/linking-error-in-unrealengine-editor-v5-4/1805946 "2024-04-16T06:43:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IAmNoBody2we](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IAmNoBody2we](https://forums.unrealengine.com/u/IAmNoBody2we)\
**Post date:** [April 16, 2024, 6:43am UTC](https://forums.unrealengine.com/t/linking-error-in-unrealengine-editor-v5-4/1805946/1 "2024-04-16T06:43:15Z")

</div>

I am encountering the following linking error when build the C++ code in editor by clicking the button in bottom.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/9/f/99fde572f29a03c8e2127840e2319f139e004ed0.png)

It seems it cannot find the symbols from `MetalRHI`

```cpp
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
	
PrivateDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Slate", "RenderCore", "RHI", "RHICore", "Projects" });

string projectPath = Directory.GetParent(ModuleDirectory).Parent.ToString();

PrivateIncludePaths.Add( "/Users/Shared/Epic Games/UE_5.4/Engine/Source/Runtime/Apple/MetalRHI/Private/" );
PrivateIncludePaths.Add( "/Users/Shared/Epic Games/UE_5.4/Engine/Source/ThirdParty/Apple/MetalShaderConverter/include/" );
PrivateDependencyModuleNames.AddRange(new string[] { "MetalRHI" });
PublicWeakFrameworks.Add("Metal");
PublicFrameworks.Add("QuartzCore");
AddEngineThirdPartyPrivateStaticDependencies(Target, "MetalCPP");
AddEngineThirdPartyPrivateStaticDependencies(Target, "MetalShaderConverter");

```

The above lines are from my `build.cs` file.  
The project can be packaged successfully but it always fail when build in editor model.

Please what is the problem?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/b/89b656143896f4df2f2260bb3efb21be6f061a09.png)
