# Failed to compile Material for platform SF\_METAL, Default Material will be used in game

**URL:** <https://forums.unrealengine.com/t/failed-to-compile-material-for-platform-sf-metal-default-material-will-be-used-in-game/599716>\
**Category:** Mobile\
**Tags:** unreal-engine, iOS, UE4-27, question\
**Created:** [July 8, 2022, 1:52am UTC](https://forums.unrealengine.com/t/failed-to-compile-material-for-platform-sf-metal-default-material-will-be-used-in-game/599716 "2022-07-08T01:52:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wujinyao999](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wujinyao999](https://forums.unrealengine.com/u/wujinyao999)\
**Post date:** [July 8, 2022, 1:52am UTC](https://forums.unrealengine.com/t/failed-to-compile-material-for-platform-sf-metal-default-material-will-be-used-in-game/599716/1 "2022-07-08T01:52:06Z")

</div>

Hi there,  
I want to export my project to IOS platform, I have made a digital human, but when it export to the ios, her head is grey, like this:

 ![IMG_0010](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/b/d1b61ed65f952b618d56b055b188055079443c8f.png)

Here is the log:

> /Users/wujinyao/Desktop/MyProject3/Content/ani2/Materials/graphen\_avatar/Female\_Angled\_Transparency\_LWHQ\_Inst.uasset: Failed to compile Material Instance with Base RL\_Hair for platform SF\_METAL, Default Material will be used in game.
> 
> PackagingResults: Warning: [AssetLog] /Users/wujinyao/Desktop/MyProject3/Content/ani2/Materials/graphen\_avatar/High\_polytail\_Transparency\_LWHQ\_Inst.uasset: Failed to compile Material Instance with Base RL\_Hair for platform SF\_METAL, Default Material will be used in game.
> 
> PackagingResults: Warning: [AssetLog] /Users/wujinyao/Desktop/MyProject3/Content/ani2/Materials/graphen\_avatar/Scalp\_High\_polytail\_Transparency\_LWHQ\_Inst.uasset: Failed to compile Material Instance with Base RL\_Hair for platform SF\_METAL, Default Material will be used in game.
> 
> PackagingResults: Warning: [AssetLog] /Users/wujinyao/Desktop/MyProject3/Content/CC\_Shaders/HairShader/RL\_Hair.uasset: Failed to compile Material for platform SF\_METAL, Default Material will be used in game.
> 
> PackagingResults: Warning: Cooking a material resource (in RL\_Hair hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
> 
> PackagingResults: Warning: Cooking a material resource (in RL\_Hair hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
> 
> PackagingResults: Warning: Cooking a material resource (in RL\_Hair hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
> 
> PackagingResults: Warning: Cooking a material resource (in RL\_Hair hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
> 
> PackagingResults: Warning: [AssetLog] /Users/wujinyao/Desktop/MyProject3/Content/CC\_Shaders/EyeShader/RL\_EyeRefractive.uasset: Failed to compile Material for platform SF\_METAL, Default Material will be used in game.
> 
> PackagingResults: Warning: Cooking a material resource (in RL\_EyeRefractive hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
> 
> PackagingResults: Warning: [AssetLog] /Users/wujinyao/Desktop/MyProject3/Content/CC\_Shaders/EyeOcclusionShader/RL\_EyeOcclusion.uasset: Failed to compile Material for platform SF\_METAL, Default Material will be used in game.
> 
> PackagingResults: Warning: Cooking a material resource (in RL\_EyeOcclusion hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
> 
> PackagingResults: Warning: [AssetLog] /Users/wujinyao/Desktop/MyProject3/Content/CC\_Shaders/EyelashShader/RL\_Eyelash.uasset: Failed to compile Material for platform SF\_METAL, Default Material will be used in game.
> 
> PackagingResults: Warning: Cooking a material resource (in RL\_Eyelash hierarchy) that doesn’t have a valid ShaderMap! Shadermap pointer is null.
> 
> PackagingResults: Warning: Failed to compile Material /Game/CC\_Shaders/SkinShader/RL\_HQSkin.RL\_HQSkin (MI:/Game/ani2/Materials/graphen\_avatar/Std\_Skin\_Head\_HQ\_Inst.Std\_Skin\_Head\_HQ\_Inst) for platform SF\_METAL, Default Material will be used in game.

I am a beginer of unreal, and I don’t know how to fix this issue, can any help me? T-T Thank you so much!

---

<div class="post-metadata">

**Author:** ![ZGR566](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZGR566](https://forums.unrealengine.com/u/ZGR566)\
**Post date:** [April 4, 2023, 5:18pm UTC](https://forums.unrealengine.com/t/failed-to-compile-material-for-platform-sf-metal-default-material-will-be-used-in-game/599716/2 "2023-04-04T17:18:23Z")

</div>

问题解决了吗？
