# IOS Metal Shader Compiler Crash in 4.16

**URL:** <https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008>\
**Category:** Mobile\
**Tags:** unreal-engine, crash, bug-report, CPP, question\
**Created:** [June 11, 2017, 3:06am UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008 "2017-06-11T03:06:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![liuwei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@liuwei](https://forums.unrealengine.com/u/liuwei)\
**Post date:** [June 11, 2017, 3:06am UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/1 "2017-06-11T03:06:02Z")

</div>

Hi, I build my project for IOS on windows, when cooking the content, it is crashed with check(bNative == false || OfflineCompiledFlag == 1) in MetalShaderCompiler.cpp 1593 line.

I don’t know which material caused it crashed,it is ok with metal preview ,and with 4.15.3 , the cooking content process is ok.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_caeaa4f8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_caeaa4f8](https://forums.unrealengine.com/u/anonymous_user_caeaa4f8)\
**Post date:** [July 17, 2017, 2:36pm UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/2 "2017-07-17T14:36:41Z")

</div>

Hello,

I’m having this issue as well, but I’m compiling a c++ project. Could this be the problem as I read in the manual that only pure blueprint projects are supported for remote Mac compiling?

---

<div class="post-metadata">

**Author:** ![liuwei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@liuwei](https://forums.unrealengine.com/u/liuwei)\
**Post date:** [July 18, 2017, 3:30am UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/3 "2017-07-18T03:30:14Z")

</div>

Hi,

I have checked to compile with a mac,and it is the same result.

---

<div class="post-metadata">

**Author:** ![POPhero](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@POPhero](https://forums.unrealengine.com/u/POPhero)\
**Post date:** [August 13, 2017, 9:02pm UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/4 "2017-08-13T21:02:10Z")

</div>

Hello

Uncheck Share Material Shader Code in Packaging settings

---

<div class="post-metadata">

**Author:** ![liuwei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@liuwei](https://forums.unrealengine.com/u/liuwei)\
**Post date:** [August 14, 2017, 1:29pm UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/5 "2017-08-14T13:29:39Z")

</div>

Thank you for your reply! I will test it and give a response.

---

<div class="post-metadata">

**Author:** ![tianqi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tianqi](https://forums.unrealengine.com/u/tianqi)\
**Post date:** [August 9, 2019, 11:54am UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/6 "2019-08-09T11:54:09Z")

</div>

Dose this works?

---

<div class="post-metadata">

**Author:** ![Liu.Wei](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Liu.Wei](https://forums.unrealengine.com/u/Liu.Wei)\
**Post date:** [August 9, 2019, 10:53pm UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/7 "2019-08-09T22:53:14Z")

</div>

In my memory, the problem was solved.

---

<div class="post-metadata">

**Author:** ![Ricardolo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ricardolo](https://forums.unrealengine.com/u/Ricardolo)\
**Post date:** [October 8, 2022, 6:49am UTC](https://forums.unrealengine.com/t/ios-metal-shader-compiler-crash-in-4-16/396008/9 "2022-10-08T06:49:33Z")

</div>

Is there any way to make the cook process normal without unchecking it, because unchecking it will make the PSO useless
